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 |
---|---|
Fluentlenium | FluentLenium integration with Kotest |
Http4k | Functional toolkit for Kotlin HTTP applications |
Kotless | Utilties for kotless and kotest |
KotlinFixture | generate well-defined, but essentially random, input |
LogCapture | LogCapture is a testing library for asserting logging messages |
Micronaut | JVM-based, full-stack framework for building modular, easily testable microservice |
Result4s | Result4s matchers |
Selfie | Snapshot testing (inline, disk, and memoization) |
Sniffy | Network connectivity testing |
TestFiles | Creates organized files and directories for testing |