Mastering Integration Tests with Testcontainers.
summary
Shows how to run reliable integration tests by wiring Testcontainers with Docker into Spring via a static DynamicPropertySource, starting Redis, Postgres and Kafka containers, copying schema SQL into the DB image, and mapping randomized host ports. Demonstrates reusable containers to avoid repeated startups, ties container lifecycle to JUnit, and injects a toxiproxy to add latency; tests run end-to-end, pass against the real services, and cleanup (or persist) containers as configured.
AI-written summary · about
chapters (4)
related talks
51mMastering Testcontainers for better integration tests
26mRemoving Complexity from Integration Tests Using Testcontainers
43mRemoving complexity from integration tests using Testcontainers!
59mIntegration and end-to-end testing with TestContainers and JUnit 5
24mIntegration Testing Made Easy: Leveraging Testcontainers and
47mIntegration Tests: testcontainers to the Rescue
46mRemoving complexity from integration tests using Testcontainers!
15mTestcontainers: Simplify Your Integration Tests and Development
