Mastering Testcontainers for better integration tests
summary
Shows concrete patterns: using jdbc TC URL to auto-provision Postgres, copying schema SQL into the container to initialize DB, and using a TCP proxy to expose a stable localhost port for IDE inspection. Demonstrates lightweight Kafka with Redpanda, Redis, and running k3s inside Docker to test operators, wiring ports into Spring via DynamicPropertySource, starting containers in parallel, and enabling reuse mode for fast local development instead of tearing down every run.
AI-written summary · about
chapters (8)
- 0:00Testcontainers and integration tests
- 8:29Why integration tests matter
- 14:50Live demo setup
- 28:19Container lifecycle in tests
- 33:19Database schema setup
- 42:19Kubernetes with Testcontainers
- 45:59Reusing containers locally
- 49:29Advanced use cases and ecosystem features
related talks
50mMastering Integration Tests with Testcontainers.
43mRemoving complexity from integration tests using Testcontainers!
53mTestcontainers: a year-in-review
48mTestcontainers and Spring Boot from integration tests to local development!
28mPostmortem: TDD with TestContainers
26mRemoving Complexity from Integration Tests Using Testcontainers
26mSimplify Your Dev Life with Testcontainers
30mIntegration tests & testContainers
