Integration Testing Made Easy: Leveraging Testcontainers and
summary
Live coding shows Testcontainers + Docker programmatically spin up real services, run integration tests, and succeed: a Postgres 14.2 container and a Couchbase 7.0.3 bucket are created, tables and indexes initialized, and tests pass. A second demo launches a wallet microservice container on a user-created network with network aliases, exposes ports (mapped to random host ports), uses a /api/v1/health HTTP wait strategy, and verifies inter-service calls end-to-end. Kafka module and common pitfalls like random ports, volumes, and data loading are covered.
AI-written summary · about
chapters (10)
- 0:00Integration testing intro
- 1:25Why external dependencies matter
- 2:48Testcontainers for PostgreSQL
- 7:29High-consistency with PostgreSQL
- 9:37Adding Couchbase storage
- 13:50Testing microservice interactions
- 18:09Networked microservices setup
- 21:11Multi-container tests
- 22:34Testcontainers for Kafka
- 23:17Closing remarks
related talks
43mRemoving complexity from integration tests using Testcontainers!
47mIntegration Tests: testcontainers to the Rescue
59mIntegration and end-to-end testing with TestContainers and JUnit 5
30mIntegration tests & testContainers
28mPostmortem: TDD with TestContainers
50mMastering Integration Tests with Testcontainers.
48mContainers for Real Integration Tests
26mSimplify Your Dev Life with Testcontainers
