Simplify Your Dev Life with Testcontainers
summary
Claims that replacing mocks with real services cuts flakiness and speeds integration testing by using Spring Boot + Testcontainers to spin real databases and message brokers on demand. Shows a product microservice wired to Postgres + Kafka + Elasticsearch (also Mongo, Flystore emulator), provisions schema with Flyway or init scripts, and uses a custom init template and container-reuse to avoid rebuilding state. Demos create containers, run tests in seconds, surface startup failures for local debugging, and run in CI (GitHub/GitLab/Circle/CI).
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:07The pain of testing
- 6:12What are Testcontainers
- 8:41Demo setup
- 10:41Pokémon demo
- 15:20Testcontainers benefits
- 23:25CI/CD integration
- 25:18Benefits recap
- 26:03Closing and thanks
related talks
32mMock my infrastructure! Using Testcontainers for better integration tests.
46mRemoving complexity from integration tests using Testcontainers!
48mTestcontainers and Spring Boot from integration tests to local development!
15mTestcontainers: Simplify Your Integration Tests and Development
26mRemoving Complexity from Integration Tests Using Testcontainers
51mMastering Testcontainers for better integration tests
24mIntegration Testing Made Easy: Leveraging Testcontainers and
39mEasy Java Integrations Testing with Testcontainers
