~/talk

Making Your Testcontainers Experience Smoother

Talkat JCON EUROPE 2024 · 2024-05-13..05-16· [testing]
slides:none on file

Shows concrete Testcontainers for Java tactics: use the MySQL and Elasticsearch modules, enable TLS via the module CA helper, run migrations once then snapshot and restore instead of rerunning, mark containers static or start them globally once and in parallel, use ram-backed volumes, increase Maven Surefire/Failsafe forks, enable testcontainers.reuse for local caching, profile with Java Flight Recorder + junit-jfr; measured runtime drops from ~4 minutes to 1:17 to 30s to 21s and finally ~5s.

AI-written summary · about

  1. 0:00Introduction
  2. 3:15Testcontainers assumptions
  3. 8:30Problematic test setup
  4. 16:19Separate fast and slow tests
  5. 18:52Optimizing integration test runtime
  6. 21:21Static containers for test classes
  7. 24:27Parallel container startup
  8. 26:32Global container initialization
  9. 28:56Avoiding repeated migrations
  10. 31:26Measuring test performance
  11. 34:59Increasing test forks
  12. 37:10Optimizing storage with RAM disk
  13. 39:19Reusing container snapshots
  14. 42:09Maximizing reuse with properties
  15. 44:42Key takeaways summary
  16. 46:51Feedback and resources
~/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.