~/talk

Integration tests are needed and simple

Talkat GeeCON 2023 · 2023-04-19..04-21· [testing, developer-experience]
slides:none on file

Builds a carbon monoxide detector app and runs it inside a container with Testcontainers and Java, then proves three concrete requirements: start within four seconds, check every second, raise alarm above 400 ppm. Tests catch real bugs—wrong waiting strategy for container readiness, integer division and division-by-zero—fixes make the integration tests pass. Uses Testcontainers features (generic containers, waiting strategies, modules for DB/Kafka) and Testcontainers Cloud to run containers off-machine, showing integration tests that are simple, reproducible and give real deployment confidence.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:08About the speaker
  3. 3:41The gas detector analogy
  4. 8:22Why unit tests aren't enough
  5. 13:53Integration tests are needed
  6. 16:42Building the CO detector demo
  7. 21:18Testing with Testcontainers
  8. 23:06First test: startup time
  9. 30:40Fixing the waiting strategy
  10. 31:22Second test: checking particles
  11. 34:59Third test: raising alarm
  12. 43:39Testcontainers modules and features
  13. 46:31Testcontainers Cloud demo
  14. 47:34Feedback and closing
~/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.