~/talk

The Other Junk Drawer: My Tests are a Mess

Talkat MountainWest RubyConf 2014 · 2014-03-20..03-21· [testing, ruby]
slides:none on file

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

  1. 0:00Start
  2. 1:5910,000 ft
  3. 2:29Goal
  4. 4:29The Plague
  5. 6:13Priority
  6. 7:28Intent
  7. 8:13Habit
  8. 9:03What to Test?
  9. 9:34Acceptance
  10. 10:10Units
  11. 11:03In between
  12. 11:57Overlap
  13. 13:23Assert
  14. 13:44Mise en Place
  15. 14:53Directory Structure
  16. 16:04Group Logically
  17. 16:56Setup
  18. 21:58Awesome Tests
~/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.