Skip to main content
Version: 5.5

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.
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
FluentleniumFluentLenium integration with Kotest
Http4kFunctional toolkit for Kotlin HTTP applications
KotlessUtilties for kotless and kotest
KotlinFixturegenerate well-defined, but essentially random, input
LogCaptureLogCapture is a testing library for asserting logging messages
MicronautJVM-based, full-stack framework for building modular, easily testable microservice
Result4sResult4s matchers
SelfieSnapshot testing (inline, disk, and memoization)
SniffyNetwork connectivity testing
TestFilesCreates organized files and directories for testing