~/talk

Integration Testing with TestContainers-Go

Talkat GopherCon Europe 2020 · 2020-06-15..06-18· [testing, microservices]
links:none on file
slides:none on file

TestContainers-Go uses the official Docker Go client to spin up throwaway containers so tests run against a real database instead of mocks, with random host port assignment to avoid conflicts and enable parallel builds. A small reaper container automatically cleans up labeled test containers to prevent resource leaks. Built-in readiness waiting strategies (HTTP, SQL, host port, payload or custom checks) remove flaky sleep logic and make integration tests reliable and repeatable.

AI-written summary · about

  1. 0:00Intro
  2. 0:32Basic integration test
  3. 0:46Getting a database for testing
  4. 0:59Docker advantages
  5. 1:19Integration testing with Docker
  6. 1:40What could go wrong?
  7. 2:42Docker API
  8. 2:54Exec example
  9. 4:39Waiting strategies
  10. 5:09Host port waiting strategy
~/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.