~/talk

Unselfish Testing

Talkat GOTO Copenhagen 2015 · 2015-10-05..10-06· [testing]
links:none on file
slides:none on file

Claim: many unit tests are unmaintainable and slow; concrete fixes and patterns improve signal and speed. Replace a loop over four customers with four tests so one failing assertion becomes three distinct failures, saving minutes (transcript example: ~3m45s to locate the value). Use one assertion per test, inline simple object creation instead of hidden setup, apply builders at suite level, and mock external resources (no filesystem/network/db). Add isolated “solitary” unit tests plus a few integration “sociable” tests; it works and keeps suites fast and debuggable.

AI-written summary · about

  1. 0:00Start
  2. 12:25Suite / Fixture / Test
  3. 15:18one: replace loop with individual tests
  4. 16:37two: expect literals
  5. 20:12Motivators
  6. 20:51code coverage
  7. 21:27document the system
  8. 22:28tdd break up a problem improved design
~/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.