Integration Tests: testcontainers to the Rescue
summary
Shows how to use Testcontainers (a Java library that starts Docker containers) to write real integration tests by spinning up databases, message queues, key-value stores and other services in Docker. Argues against mocking databases and recommends running tests against real containers so tests use real data and behavior.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 4:20Integration tests matter
- 7:33Testcontainers explained
- 10:01Advantages over H2
- 14:06Jenkins and CI/CD
- 20:32Production DB and dump handling
- 25:01Live demo with Testcontainers
- 35:21Advanced Jenkins config
- 41:07Complex use cases
- 45:02Q&A
related talks
15mTestcontainers: Simplify Your Integration Tests and Development
37mContainers for testing - testing seriously
51mTestContainers: Integration Testing Without the Hassle
48mContainers for Real Integration Tests
24mIntegration Testing Made Easy: Leveraging Testcontainers and
46mTestcontainers - The past, the present and the future
26mRemoving Complexity from Integration Tests Using Testcontainers
56mNext‑Level Integration Testing
