Mock my infrastructure! Using Testcontainers for better integration tests.
summary
Demo shows using Testcontainers with Java and Spring Boot to start real Postgres and a custom MinIO container, inject dynamic JDBC URL/credentials, and run disposable integration tests that start in about two seconds. Slow services like Camunda take minutes so the demo uses reusable containers to avoid repeated startup. Tests run fast enough for CI the example project keeps full-suite builds under ~10 minutes and created buckets and DB rows successfully during each run.
AI-written summary · about
chapters (11)
- 0:00Testcontainers intro
- 3:14Integration tests hard
- 5:47Testcontainers with Spring Boot
- 10:32Replace manual DB setups
- 13:28Dynamic properties for containers
- 17:13PostgreSQL in tests
- 19:50Custom MinIO containers
- 23:36Speed and reliability
- 25:22Reuse slow containers
- 27:36Daily benefits
- 29:46Q&A
related talks
26mSimplify Your Dev Life with Testcontainers
48mTestcontainers and Spring Boot from integration tests to local development!
43mRemoving complexity from integration tests using Testcontainers!
59mIntegration and end-to-end testing with TestContainers and JUnit 5
46mRemoving complexity from integration tests using Testcontainers!
24mIntegration Testing Made Easy: Leveraging Testcontainers and
30mIntegration tests & testContainers
51mMastering Testcontainers for better integration tests
