Skip to main content
Version: 5.3

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​

ProjectDescription
SpringAdds support for spring beans in tests and spring test annotations
KtorProvides matchers for Ktor endpoints
KoinKotlin DI framework
MockserverIntegrate mockserver HTTP servers with the test lifecycle
SystemProvides utilities for integrating with System.* functions
InstantOverride the 'now' context in java.time
TestcontainersRun docker images as part of a test lifecycle
WiremockProvides a mock HTTP server. Project homepage here.
RoboelectricIntegrate roboelectric with the test lifecycle
AllureProvides output for the allure framework
JUnit XMLProvides output in the JUnit XML format for integration with reporting tools
HTML ReporterGenerates HTML reports of test results based on JUnit XML

Third Party Extensions​

ProjectDescription
Http4kFunctional toolkit for Kotlin HTTP applications
MicronautJVM-based, full-stack framework for building modular, easily testable microservice
SniffyNetwork connectivity testing
TestFilesCreates organized files and directories for testing
Result4sResult4s matchers
KotlessUtilties for kotless and kotest
LogCaptureLogCapture is a testing library for asserting logging messages
KotlinFixturegenerate well-defined, but essentially random, input
FluentleniumFluentLenium integration with Kotest