~/talk

The social lives of unit tests

Talkat dotnetdays 2024 · 2024-04-18..04-20· [testing, developer-experience]
links:none on file
slides:none on file

Asserts that a unit test targets a unit of behavior (the module’s public exports) not a class, and that heavy mocking produces brittle suites and an approximate 3:1 tests-to-code ratio that makes refactoring costly; recommends sociable tests that exercise real dependencies where safe, using fakes not mocks to keep tests fast, and only breaking encapsulation for legacy seams. Claims this approach keeps tests quick, isolated from each other, and trustworthy so refactors succeed without endless mock rewrites.

AI-written summary · about

  1. 0:00Introduction to unit test social lives
  2. 1:03Promise and purpose of unit tests
  3. 2:48Solitary unit testing explained
  4. 6:49Problems with heavily mocked tests
  5. 9:38Unit as unit of behavior
  6. 12:51Transition to sociable unit tests
  7. 15:50Redefining unit test definition
  8. 17:13Solitary vs sociable tests comparison
  9. 18:39Summary and further resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.