~/talk

Testing Heresies

Talkat RubyConf 2008 · 2008-11-06..11-08· [testing, ruby]
links:none on file
slides:none on file

Argues that fine‑grained mocks break more than they help in real Rails apps, favoring database‑backed, top‑to‑bottom tests for tricky domains. Shows concrete failures: an XML ingestion bug caused by REXML calls, a slow partner ID lookup solved by adding a hash field and overwrote find in tests to force the fast path (which briefly broke suites), and a large external API replaced with a tested member service stub. Notes full suites often run minutes and parallel CI (EC2/Testure) cuts 40m→2m.

AI-written summary · about

  1. 0:00Introduction
  2. 3:19Testing is worth doing
  3. 7:34Mocking versus state
  4. 15:36TDD and real objects
  5. 27:35Slow tests in large apps
  6. 33:55Code structure limits
  7. 39:15Unknown unknowns
  8. 44:52Testing does not solve all problems
  9. 59:37Q&A
~/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.