~/talk

Speeding Up Your Test Suite

Talkat RedDotRubyConf 2016 · 2016-06-23..06-24· [testing]
slides:none on file

RSpec test suite uses FactoryGirl, Zeus/Spring and mocks to cut runtime: a codebase with 35 minutes of full runs is reduced to ~10 minutes overall, and a seven‑example service spec drops from ~15s to ~3s by removing forced DB cleans, reusing associations, switching many creates to FactoryGirl build_stubbed, and mocking external posts to the notifications API. Measurement is via Zeus or Spring and the talk claims ~47% savings from DB-clean removal and ~80% savings after all optimizations.

AI-written summary · about

  1. 0:00Introduction
  2. 1:15The importance of speed
  3. 1:46Before
  4. 2:35Measure
  5. 3:22Scenario
  6. 4:57Database Clean
  7. 5:37Declaration Reuse
  8. 6:49Build Up
  9. 8:05Mocks
~/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.