~/talk

Tests with Docker #Testcontainers #slideless

TalkinGermanat JCON-ONLINE 2021 · 2021-10-05..10-08· [testing, devops-and-delivery]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 1:04What is Testcontainers
  3. 2:08Start first container
  4. 3:57Wait for container startup
  5. 5:00Database URL and credentials
  6. 7:14Password and user config
  7. 8:17JdbcContainer for MySQL
  8. 9:41Other container types
  9. 10:24Test data with SQL scripts
  10. 11:52Testcontainers with JUnit 5
  11. 14:20Containers in JUnit 4
  12. 15:43Optimize container lifetime
  13. 16:53Keep test data isolated
  14. 17:13Integration tests with Maven
  15. 18:17Connection pooling
  16. 19:01Dockerfile for Testcontainers
  17. 21:06Embedded Testcontainers
  18. 23:43Spring Boot integration
  19. 27:04Browser containers for tests
  20. 29:19Record video with browser containers
  21. 31:10Large integration test scenario
  22. 34:24Networks and container linking
  23. 36:45Run parallelized tests
  24. 37:27HTML reports with videos
  25. 39:01Testcontainers with Docker Compose
  26. 40:58Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.