Sensible Testing
summary
Argues for testing shaped by concrete practices not coverage quotas, recommending consistent distance, a test pyramid with more fast unit tests, and idempotent, distinct specs. Critiques VCR for hiding service behavior and shows building a fake service (Shamrock) as an alternative, using dependency injection and a lightweight Rack thread. Mentions using rspec’s random ordering to find order-dependent failures, cites DHH’s 1:2–1:3 code:test ratio warning, and a real case where one bug breaks 124 tests.
AI-written summary · about
chapters (7)
- 0:00The state of testing
- 2:23Coverage and its limits
- 5:52Introducing the CUPID acronym
- 9:30Core principles of testing
- 17:30Practical code improvements
- 26:41Common testing pitfalls
- 33:52Reflective testing culture








