~/talk

Take your slow tests to the doctor

Talkat Balkan Ruby 2018 · 2018-05-25..05-26· [testing]
slides:none on file

A toolkit called despereaux diagnoses slow specs and ships recipes like factory_doctor and create_all to cut wasted DB work; projects see test suites drop by about 4x after finding hot spots. Specific fixes include lowering bcrypt cost to halve auth-test time, disabling inline Sidekiq for ~20% savings, and replacing many persistent factory calls (which consumed ~80% of time) to obtain ~3x speedups. The talk demonstrates exact profiling techniques and refactoring steps used.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 2:17Why slow tests matter
  3. 6:44Introducing Despereaux toolset
  4. 8:25Profiling tools for tests
  5. 12:42Sampling profiler and optimizations
  6. 15:15Integration with testing frameworks
  7. 20:24Special providers and psychic jobs
  8. 21:10Factories vs fixtures
  9. 23:42Factory bottlenecks
  10. 28:50Creative old and fixture reuse
  11. 30:42Database cleanup and fixtures
  12. 31:48Fixture efficiency gains
  13. 33:07Before callbacks and setup
  14. 35:42Combining expectations in specs
  15. 36:30Why developers care about tests
  16. 37:35Future ideas and conclusion
~/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.