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
,beforeShutdown
andafterShutdown
lifecycle hooks` - Bumped Gradle to 8.8
- Deprecated older extensions and introduced
JdbcDatabaseContainerExtension
andContainerExtension
extensions - Deprecated Kafka extensions in favour of the
kotest-extensions-testcontainers-kafka
module - Added kafka container
.producer()
,.consumer()
and.admin()
extension methods for opening producers, consumers and admin clients. - Added
DockerComposeContainerExtension
for executing test containers from docker compose files. - Added
kotest-extensions-testcontainers-elastic
andkotest-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
SharedJdbcDatabaseContainerExtension
andSharedTestContainerExtension
which 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
dbInitScripts
on theJdbcTestContainerExtension
config lambda. This option accepts a list of.sql
files or folders (with .sql files, sorted lexicographically) to run after the container is started.
- Requires Kotest 5.0.2 or higher
- Adds
JdbcTestContainerExtension
as a new extension - Adds
TestContainerExtension
as a new extension
- Released for test containers v1.16.0
- Migrated from the main Kotest repo to a standalone repo.