Tests with Docker #Testcontainers #slideless
summary
Shows how to replace an in-memory H2 database and a local browser used in a Spring Boot app’s integration tests with Docker containers using Testcontainers. Covers using ready-made containers from registries, the required Java+Docker setup on the runner, and the main Testcontainers features for database and browser testing.
AI-written summary · about
chapters (26)
- 0:00Introduction
- 1:04What is Testcontainers
- 2:08Start first container
- 3:57Wait for container startup
- 5:00Database URL and credentials
- 7:14Password and user config
- 8:17JdbcContainer for MySQL
- 9:41Other container types
- 10:24Test data with SQL scripts
- 11:52Testcontainers with JUnit 5
- 14:20Containers in JUnit 4
- 15:43Optimize container lifetime
- 16:53Keep test data isolated
- 17:13Integration tests with Maven
- 18:17Connection pooling
- 19:01Dockerfile for Testcontainers
- 21:06Embedded Testcontainers
- 23:43Spring Boot integration
- 27:04Browser containers for tests
- 29:19Record video with browser containers
- 31:10Large integration test scenario
- 34:24Networks and container linking
- 36:45Run parallelized tests
- 37:27HTML reports with videos
- 39:01Testcontainers with Docker Compose
- 40:58Q&A
related talks
47mIntegration Tests: testcontainers to the Rescue
15mTestcontainers: Simplify Your Integration Tests and Development
26mRemoving Complexity from Integration Tests Using Testcontainers
51mTestContainers: Integration Testing Without the Hassle
15mTake Control of your Integration Testing with Testcontainers
48mUsing Docker for Testing Legacy Code
37mContainers for testing - testing seriously
21mTest Containers: Where Every Test Starts Fresh
