~/talk

Testing Should Be Fun

Talkat RubyConf 2012 · 2012-11-01..11-03· [testing]
slides:none on file

Argues that testing becomes enjoyable again by fixing concrete problems: slow CI (Groupon cuts suite from ~40 to 20 minutes), flaky tests, and bloated fixtures. Recommends specific refactorings: remove unnecessary DB hits (use new or factories for only changed attributes), split multi-step specs into smaller tests, extract shared setup, prefer single-assertion tests when sensible, assert on primitive values for clearer failures, use spies (Jasmine style) and run only changed files or focused suites to keep feedback fast.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Kent Beck and JUnit origins
  3. 4:36Programmers love tests
  4. 8:26Why testing gets painful
  5. 12:15TDD and long-term tests
  6. 16:33Test refactoring principles
  7. 21:25Extracting tests for clarity
  8. 24:59Removing DB hits
  9. 27:32Factories and test noise
  10. 31:06Cucumber and unit tests
  11. 32:54Single assertion style
  12. 34:18Right testing level
  13. 36:27Primitive assertions
  14. 37:53Jasmine spies vs mocks
  15. 39:18Meaningful test values
  16. 41:29Boolean test habits
  17. 41:49Easy test runs
  18. 43:59Listen to your tests
  19. 45:01Delete unnecessary tests
  20. 46:26Avoiding Uncanny Valley
  21. 47:08Resources and closing
~/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.