Kotest Extensions

This section explains various extension projects available for Kotest.

Kotest External Extensions

Kotest integrates with many other libraries and frameworks. Some are provided by the Kotest team, while others are maintained and hosted by third parties.

Kotest Spring Extension(SpringExtension)

Kotest provides a Spring extension that lets you test code that uses the Spring framework for dependency injection.

Kotest Ktor Extension

This page explains the Ktor extension.

Kotest System Extensions

Kotest System Extensions provide assertions for system calls related to Java’s java.lang.System class. These extensions are used to test exceptions from system calls and verify behavior such as system output or system exit.

Kotest Testcontainers Extension

Testcontainers is a tool that lets you use container-based external resources during tests. It helps build a test environment similar to a real environment and makes testing external resources easier. This page explains how to use Testcontainers in Kotest.

Kotest Kafka (EmbeddedKafkaListener) Extension

Kotest’s EmbeddedKafkaListener is an extension that lets you use Apache Kafka in embedded form in a test environment.

Kotest MockServer

MockServer provides a virtual HTTP server. With this library, you can test as if communicating with a real server without using a separate mocking library such as mockk.

Kotest JUnit XML Format Reporter

Kotest can generate test reports in JUnit XML format. This format can be used in automated test execution environments such as CI/CD tools. JUnit XML reports record test execution results and are used to analyze them and generate statistics and quality metrics for test results.

Kotest HTML Reporter

Kotest provides an HTML Reporter that can generate test reports in HTML format. This lets you visually inspect test execution results and provides detailed information about test execution.

Kotest Allure Extension

This page introduces the Allure extension.

Kotest Current Instant Listeners Extension

This page introduces the Current Instant Listeners extension.

Kotest Koin Extension

This page introduces the Kotest Koin extension.

Kotest WireMock Extension

This page introduces the WireMock extension.

Kotest Test Clock Extension

This page explains the Test Clock extension.

Kotest Pitest Extension

This page introduces the Pitest extension.

Kotest BlockHound Extension

This page introduces the BlockHound extension.