Kotest: Integration with Testcontainers

Created on 5 Apr 2020  路  4Comments  路  Source: kotest/kotest

Testcontainers is a tool that can dynamically spin up docker containers to be used in tests.
This can be useful for spinning up database containers in integration tests for example.
Kotest integration with this tool would be nice.

Thanks.

enhancement

Most helpful comment

We've now merged this into kotest itself due to testcontainers having higher priorities.

All 4 comments

@ashishkujoy has opened a PR at testcontainers to add support there alongside spock / junit5.
You could vote on that issue., https://github.com/testcontainers/testcontainers-java/pull/2533

We've now merged this into kotest itself due to testcontainers having higher priorities.

Will be included in 4.1

Forgive me, is there documentation for how to actually use this? I found the classes in kotest-extension-testcontainers, but I'm not sure how to actually use it in one of my specs.

Thanks!

EDIT: just found it: https://github.com/kotest/kotest/blob/master/doc/extensions.md#testcontainers

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jensim picture jensim  路  11Comments

mnonnenmacher picture mnonnenmacher  路  3Comments

izhangzhihao picture izhangzhihao  路  3Comments

stefanneuhaus picture stefanneuhaus  路  4Comments

nanodeath picture nanodeath  路  3Comments