Extensions
Kotest integrates with many other libraries and frameworks. Some are provided by the Kotest team, and others are maintained and hosted by third parties.
Kotest Team Extensions​
Project | Description |
---|---|
Spring | Adds support for spring beans in tests and spring test annotations |
Ktor | Provides matchers for Ktor endpoints |
Koin | Kotlin DI framework |
Mockserver | Integrate mockserver HTTP servers with the test lifecycle |
System | Provides utilities for integrating with System.* functions |
Instant | Override the 'now' context in java.time |
Testcontainers | Run docker images as part of a test lifecycle |
Wiremock | Provides a mock HTTP server. Project homepage here. |
Roboelectric | Integrate roboelectric with the test lifecycle |
Allure | Provides output for the allure framework |
JUnit XML | Provides output in the JUnit XML format for integration with reporting tools |
HTML Reporter | Generates HTML reports of test results based on JUnit XML |
Third Party Extensions​
Project | Description |
---|---|
Http4k | Functional toolkit for Kotlin HTTP applications |
Micronaut | JVM-based, full-stack framework for building modular, easily testable microservice |
Sniffy | Network connectivity testing |
TestFiles | Creates organized files and directories for testing |
Result4s | Result4s matchers |
Kotless | Utilties for kotless and kotest |
LogCapture | LogCapture is a testing library for asserting logging messages |
KotlinFixture | generate well-defined, but essentially random, input |
Fluentlenium | FluentLenium integration with Kotest |