Integration tests & testContainers
summary
Shows that using containers during integration tests moves teams from H2 compatibility hacks to running real Postgres/MySQL instances with TestContainers wait strategies and automatic start/stop and cleanup. Demonstrates a Micronaut app built with Gradle, a Gradle Docker plugin that creates multiple JDK image variants and publishes registries, and Flyway migration testing to catch destructive schema changes. Notes Docker Compose port race conditions and randomized ports, and includes working examples: mock OpenAPI server, MySQL 11.06 and Postgres containers, plus a few demo network failures.
AI-written summary · about
chapters (4)
- 0:00Start
- 4:04Snowflake Server versus the Phoenix Server
- 26:45Test Containers Mysql
- 28:30Waiting Strategies
related talks
40mIntegration tests & testContainers
24mIntegration Testing Made Easy: Leveraging Testcontainers and
43mRemoving complexity from integration tests using Testcontainers!
51mMastering Testcontainers for better integration tests
32mMock my infrastructure! Using Testcontainers for better integration tests.
28mPostmortem: TDD with TestContainers
15mTake Control of your Integration Testing with Testcontainers
59mIntegration and end-to-end testing with TestContainers and JUnit 5
