~/talk

Don't Let Your Tests Flake Out

Talkat Open Source Bridge 2014 · 2014-06-24..06-27· [testing]
slides:none on file

Explains two root causes of flakiness: leaked shared state (globals, constants, class vars, callbacks, even 50 lingering event subscriptions) and brittle comparisons (floating point and time round‑trips, timezones, daylight savings). Recommends concrete fixes: isolate objects or reset state centrally, freeze/advance time with Timecop/time travel, use anonymous classes or appraisals for metaprogramming, expose and join threads, add verbose/seeded runs and logging. Ships three tools that work in practice: test‑bisect to find the minimal failing sequence, Hometown to trace object instantiation, and minitest‑stat to detect thread leaks.

AI-written summary · about

  1. 0:00Start
  2. 3:09Globals
  3. 5:01'Constants
  4. 5:31Class Variables
  5. 6:19Events and Callbacks
  6. 11:10Floats
  7. 11:43Time Roundtripping
  8. 13:42SAVING DAYLIGHT
  9. 16:19Reset Consistently
  10. 19:47Metaprogramming
  11. 23:45Always Be Logging
  12. 25:56Method Order
  13. 28:46Threading
~/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.