~/talk

Testing Complex Systems: Creating data and limiting scope

Talkat RailsConf 2013 · 2013-04-29..05-02· [testing, ruby-on-rails]
slides:none on file

Builds a concrete testing plan around a Purchase object that computes price from a Trip (200) plus a HotelStay (50 × 3 = 150 → 350), shows using factories and fixtures and stubs and mocks to keep unit tests fast, and recommends wrapping external services with small adapters and using VCR/WebMock for integration. Gives numbers: slow suites can balloon to 10–45 minutes, many tests break when ActiveRecord validations leak into setup, and shows how to limit scope.

AI-written summary · about

  1. 0:00Start
  2. 2:54Limiting tests to a particular part of the code
  3. 4:45Driving modular design with tests
  4. 9:44Where to start?
~/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.