~/talk

No More SQLite - How to Write Tests With EF Core Using TestContainers

Talkat NDC Oslo 2024 · 2024-06-10..06-14· [databases, testing]
slides:none on file

A live demo spins up TestContainers Postgres containers for EF Core integration tests with one-line setup/start/teardown, uses randomized ports and sensible defaults, and relies on the Ryuk resource reaper for cleanup. Tests use xUnit collection fixtures to control parallelism and Respawn to reset the public schema between tests. Observed runtimes: about 7.5s for nine tests across three containers; a few hundred tests also ran without notable slowdown (~5–7s reported).

AI-written summary · about

  1. 0:00The problem with sqlite
  2. 2:39Testing another system
  3. 4:51Cost of debugging
  4. 6:16Testing alternatives
  5. 8:52Introduction to Testcontainers
  6. 11:05Coding demo part 1
  7. 20:14State management with Respawn
  8. 24:05Advanced test practices
  9. 28:57Podman and reusability
  10. 30:17Recap and conclusions
~/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.