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 integrates with many other libraries and frameworks. Some are provided by the Kotest team, while others are maintained and hosted by third parties.
Kotest provides a Spring extension that lets you test code that uses the Spring framework for dependency injection.
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.
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’s EmbeddedKafkaListener is an extension that lets you use Apache Kafka in embedded form in a test environment.
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 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 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.
This page introduces the Current Instant Listeners extension.