Unselfish Testing
summary
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
chapters (8)
- 0:00Start
- 12:25Suite / Fixture / Test
- 15:18one: replace loop with individual tests
- 16:37two: expect literals
- 20:12Motivators
- 20:51code coverage
- 21:27document the system
- 22:28tdd break up a problem improved design








