Testcontainers and Spring Boot from integration tests to local development!
summary
Testcontainers integrates with Spring Boot to spin up real dependencies—Postgres, Kafka, Redis—during JUnit/Jupiter tests and for local runs, using Testcontainers modules, startables and the dynamic property registry so Spring properties point to mapped container ports. The demo app stores ratings, uses Rest Assured for HTTP assertions and shows migrations, Kafka messaging and health checks all passing. A dev-mode auto-service prototype starts needed containers automatically; extras include a toxic-proxy for network chaos and an upcoming cloud-backed runner.
AI-written summary · about
chapters (5)
- 0:00Start
- 17:50Test Containers Concepts
- 20:26Abstract Integration Test
- 22:26Generic Container
- 36:33Toxic Proxy Module
related talks
32mMock my infrastructure! Using Testcontainers for better integration tests.
26mSimplify Your Dev Life with Testcontainers
15mTestcontainers: Simplify Your Integration Tests and Development
43mRemoving complexity from integration tests using Testcontainers!
51mMastering Testcontainers for better integration tests
46mRemoving complexity from integration tests using Testcontainers!
53mTestcontainers: a year-in-review
59mIntegration and end-to-end testing with TestContainers and JUnit 5
