~/talk

Running Docker-Based Integration Tests in Scala: A Case Study

Talkat Scala Days 2023 Madrid · 2023-09-12..09-14· [scala, testing]
speakerdeck:mdipirro
slides:none on file

Compares sbt-docker-compose and testcontainers-scala using a tiny Scala HTTP app that listens on port 8080. Finds sbt plugin starts containers faster and reuses them across suites but forces duplicated Docker Compose config, lacks readiness checks (requiring eventual retries) and is brittle; Testcontainers is slower per test but offers fine‑grained container definitions, built‑in readiness strategies, typed access to mapped ports and reusable container classes, leading to far cleaner, more maintainable integration tests. Continuous migration to Testcontainers proves practical.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26Why is testing so important
  3. 3:50The testing pyramid
  4. 4:51Endtoend testing
  5. 6:11Docker images
  6. 7:31Different approaches
  7. 10:26Case study
  8. 11:10SBT compos
  9. 12:33Running a single test
  10. 16:05Testing Switch
  11. 19:04Testing Suite
  12. 21:42Test Containers
  13. 23:00Test Container Flow
  14. 23:56Container Definition
  15. 26:12Test Class
  16. 26:50Test Case
  17. 27:57Conclusion
~/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.