Codebase for the blog post Reuse containers with Testcontainers for fast integration tests
Steps to run this project:
- Clone this Git repository
- Navigate to the folder
testcontainers-reuse-existing-containers - Ensure your Docker engine is running (
docker ps) - Run all integration tests with
mvn verify - Ensure the Docker containers for PostgreSQL are still running (one for PostgreSQl 9.6 and one for 10)
- Re-run the integration tests. They should finish faster now