~/talk

Unit Testing Deconstructed

Talkat NDC Sydney 2020 · 2020-08-31..09-03· [testing]
links:none on file
slides:none on file

Argues a unit is a cohesive module and a unit test proves behavior while running isolated from other tests. Traces TDD back to Kent Beck and Test Driven Development by Example, noting Beck’s practical definition: tests that run in isolation. Evaluates four test qualities — behavioral, structure-insensitive, isolated, writable — and shows concrete trade-offs: heavy mocking yields isolation and behavioral checks but is structure-sensitive and hard to write; registering a mock database plus a builder reduces brittleness but can hurt readability and speed. Advises choosing trade-offs and matching tooling to goals.

AI-written summary · about

  1. 0:00Introduction
  2. 1:17What is a unit?
  3. 5:17Principles of cohesion
  4. 8:57TDD and behavior testing
  5. 13:50Desirable test qualities
  6. 17:27Managing test trade-offs
  7. 19:56Conclusion and resources
~/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.