The Other Junk Drawer: My Tests are a Mess
summary
Argues that messy suites slow work and gives concrete fixes: use mirror your lib directory so tests live next to corresponding code, prefer a few high‑value acceptance tests for wiring and focused unit tests, and move behavior out of controllers into testable models. Follow arrange‑act‑assert, flatten heavy setups into domain fixtures (admin user with billing, regular user without), stop tacking on ad hoc setup, and expect the suite to become readable and faster to navigate than wading through dozens of files.
AI-written summary · about
chapters (18)
- 0:00Start
- 1:5910,000 ft
- 2:29Goal
- 4:29The Plague
- 6:13Priority
- 7:28Intent
- 8:13Habit
- 9:03What to Test?
- 9:34Acceptance
- 10:10Units
- 11:03In between
- 11:57Overlap
- 13:23Assert
- 13:44Mise en Place
- 14:53Directory Structure
- 16:04Group Logically
- 16:56Setup
- 21:58Awesome Tests








