~/talk

Properties of Unit Tests

Talkat NDC TechTown 2022 · 2022-08-29..09-01· [testing, software-architecture]
github:arnemertz
slides:none on file

Argues that unit tests must be fast, isolated, and precise: use dependency injection and mocks instead of touching files or databases, separate infrastructure tests, and prefer small deterministic cases over complex test logic. Recommends frameworks like gtest and Catch, using string streams instead of file I/O, and aiming for quick feedback (example: ~10,000 tests running in ~20–30s). Shows migration pain when rewriting iterators that compiled after weeks and broke tests, so keep tests readable and focused.

AI-written summary · about

  1. 0:00Unit test properties intro
  2. 1:10Defining unit tests
  3. 6:05Unit tests in development
  4. 16:45Effective unit test properties
  5. 28:30Readability and maintainability
  6. 39:05Test speed and performance
  7. 47:14Test isolation principles
  8. 55:28Edge cases and failures
  9. 1:03:28Code coverage and test-driven development
~/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.