Postmortem: TDD with TestContainers
summary
Demonstrates using TestContainers to run real services (PostgreSQL 13, Pulsar, ZooKeeper) in Docker for fast TDD-style integration tests, initializing and tearing down containers per suite or per test with lazy initialization and Ryuk cleanup. Explains autogenerated JDBC URLs/credentials, the requirement that Docker be running, and argues this catches errors like wrong topic names or SQL typos early, shifting effort from unit tests to reliable integration tests used in production pipelines.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:47Unit vs integration testing
- 6:25TDD with TestContainers
- 10:39TestContainers benefits
- 15:01JUnit 5 setup
- 20:24Experience and cases
- 24:15Supported techs
- 27:06Q&A
related talks
59mIntegration and end-to-end testing with TestContainers and JUnit 5
24mIntegration Testing Made Easy: Leveraging Testcontainers and
51mMastering Testcontainers for better integration tests
47mIntegration Tests: testcontainers to the Rescue
48mContainers for Real Integration Tests
30mIntegration tests & testContainers
01h 06mTestcontainers best practices.
43mRemoving complexity from integration tests using Testcontainers!
