This project has moved to the main Kotest repo https://github.com/kotest/kotest
Kotest extensions for TestContainers.
See docs.
Please create issues on the main kotest board.
Starting with version 1.3.4, the minimum Java version is 11.
| Extension version | Min. Java version | 
|---|---|
| 1.3.3 | 8 | 
| 1.3.4 | 11 | 
| 2.0.0 | 11 | 
- Deleted all deprecations
 - Container is now receiver of 
beforeStart,afterStart,beforeShutdownandafterShutdownlifecycle hooks` - Bumped Gradle to 8.8
 
- Deprecated older extensions and introduced 
JdbcDatabaseContainerExtensionandContainerExtensionextensions - Deprecated Kafka extensions in favour of the 
kotest-extensions-testcontainers-kafkamodule - Added kafka container 
.producer(),.consumer()and.admin()extension methods for opening producers, consumers and admin clients. - Added 
DockerComposeContainerExtensionfor executing test containers from docker compose files. - Added 
kotest-extensions-testcontainers-elasticandkotest-extensions-testcontainers-localstack - Deprecated per-test lifecycle modes
 - Deprecated custom SQL runner in favour of Flyway or another widely used db migration framework.
 
- 5.4.0 compatibility
 
- Version updates
 
- Updated spec and test callbacks to be suspendable.
 
- Updated test containers to 1.17.0
 
- Added 
SharedJdbcDatabaseContainerExtensionandSharedTestContainerExtensionwhich can be used to lazily share a single test container across a module. 
- Improves the handling of 
dbInitScripts. Will now accept absolute or relative paths, for local or classpath resources. 
- Adds new config option  
dbInitScriptson theJdbcTestContainerExtensionconfig lambda. This option accepts a list of.sqlfiles or folders (with .sql files, sorted lexicographically) to run after the container is started. 
- Requires Kotest 5.0.2 or higher
 - Adds 
JdbcTestContainerExtensionas a new extension - Adds 
TestContainerExtensionas a new extension 
- Released for test containers v1.16.0
 
- Migrated from the main Kotest repo to a standalone repo.