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#

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
Test ContainersRun docker images as part of a test lifecycle
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

Third Party Extensions#

Http4kFunctional toolkit for Kotlin HTTP applications
MicronautJVM-based, full-stack framework for building modular, easily testable microservice
TestFilesCreates organized files and directories for testing