DEV Community

Discussion on: Testcontainers with Spring Boot and Java 11/17

Collapse
 
olegshelajev profile image
Oleg Šelajev

You can reuse the containers between tests, there's API for manual container lifecycle management, see Singleton containers in the docs here: testcontainers.org/test_framework_...

You can also keep the containers between the test runs -- it's an experimental feature now, works a bit like this: rieckpil.de/reuse-containers-with-...

Collapse
 
cricketsamya profile image
Sameer

Thanks for the information! I missed the experimental part! Thumbs up for that!