Containers for Real Integration Tests
summary
Shows how to run real datastore-backed integration tests by launching lightweight throwaway containers from the test process using Docker-Maven-Plugin and Testcontainers. Demonstrates creating and tearing down containers per test, composing services and networks, running hundreds of parallel tests (example run used ~33 containers), and handling lifecycle and cleanup edge cases to replace fragile in-memory or mocked databases.
AI-written summary · about
chapters (9)
- 0:00Container integration testing intro
- 4:17In-memory data stores
- 15:44Embedding tests in app
- 20:41Building test containers
- 25:54Test container cleanup
- 32:09Docker limitations
- 37:43Testcontainers for JavaScript
- 42:48Orchestrating test containers
- 48:18Q&A
related talks
47mIntegration Tests: testcontainers to the Rescue
35mReal Integration Tests with TestContainers
15mTestcontainers: Simplify Your Integration Tests and Development
51mTestContainers: Integration Testing Without the Hassle
24mIntegration Testing Made Easy: Leveraging Testcontainers and
26mRemoving Complexity from Integration Tests Using Testcontainers
27mIntegration testing for Microservices with Docker and TestContainers
28mPostmortem: TDD with TestContainers
