This tutorial covers a feature of Testcontainers that allows you to reuse containers. Since Testcontainers 1.12.3 this feature is in alpha state and reduces time spent on running integration tests.

Take a look at the corresponding blog post for further insights https://rieckpil.de/reuse-containers-with-testcontainers-for-fast-integration-tests/

You can find additional information on Testcontainers here: https://rieckpil.de/?s=testcontainers

The source code is available on GitHub: https://github.com/rieckpil/blog-tutorials/tree/master/testcontainers-youtube-series

» Want to become an expert for testing Spring Boot applications? Join the Testing Spring Boot Applications Masterclass: https://rieckpil.de/testing-spring-boot-applications-masterclass/

» Join the 14 Days Free Email Course on Testing Java Applications to Accelerate Your Testing Success: https://rieckpil.de/getting-started-with-testing-java-applications-email-course/

#testcontainers

Reuse Containers with Testcontainers to Improve Build Times
1.10 GEEK