Kotest Assertions

Explains assertions and matchers in Kotlin.

Kotest Test Assertions

In tests, assertions are used to check whether specific conditions are true. In Kotlin, Kotest lets you use many kinds of assertions and matchers. This section looks at assertions and matchers in detail.

Kotest Custom Matchers

In Kotest, you can create custom matchers to check specific conditions.

Kotest Clues

In Kotest, clues let you provide detailed explanations for assertions.

Kotest Exceptions

Explains assertions for testing exceptions in Kotlin.

Kotest Soft Assertions

Soft assertions use assertSoftly to group and execute multiple assertions.

Kotest Inspectors

In addition to matchers, Kotest supports inspectors, extension functions for collections that verify whether an assertion holds for a particular group of elements.

Kotest Assertion Mode

Assertion Mode controls what happens when a test runs without executing any assertions.

Kotest Core Matchers

Introduces the types of Kotest core matchers.

Kotest Collection Matchers

Introduces rich matchers available for Collection, Iterable, and Array types.

Kotest JSON Matchers

Explains JSON matchers.

Kotest Ktor Matchers

Explains Ktor matchers.

Kotest Kotlinx Datetime Matchers

Explains Kotlinx Datetime matchers.

Kotest Arrow Matchers

Lists the current matchers in the Arrow matcher extension library.

Kotest Konform Matchers

Konform matchers can be used in tests to check whether a specified object passes or fails validation.

Kotest Klock Matchers

Explains Klock matchers.

Kotest Compiler Matchers

Explains compiler matchers.

Kotest Jsoup Matchers

Explains Jsoup matchers.