Testcontainers: Simplify Your Integration Tests and Development
summary
Testcontainers runs real Docker containers for integration tests so teams get isolated, production-like services (e.g., an Oracle container mapped to host port 1521) instead of shared databases. It integrates with Spring Boot 3 via @ServiceConnection or manual JUnit5-managed containers, offers modules for Kafka, Mongo, MariaDB and mock servers, and supports a test-only main to reuse containers during development; trade-offs are needing a Docker daemon and longer test startup times.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 2:50Isolation testing problems
- 4:13Testcontainers overview
- 6:19Spring Boot setup
- 9:28Development use
- 12:37Experience and limits
- 13:50Q&A
related talks
47mIntegration Tests: testcontainers to the Rescue
51mTestContainers: Integration Testing Without the Hassle
26mRemoving Complexity from Integration Tests Using Testcontainers
13mImproving Integration Tests using Testcontainers
43mRemoving complexity from integration tests using Testcontainers!
48mTestcontainers and Spring Boot from integration tests to local development!
01h 06mTestcontainers best practices.
48mContainers for Real Integration Tests
