~/talk

The Secret Ingredient: How To Understand and Resolve Just...

Talkat RubyConf 2023 · 2023-11-13..11-15· [testing]
slides:none on file

Every flaky test traces to one assumption about environment: it expects a particular state and that state sometimes changes. Three concrete failure modes appear: non-determinism (clock, random, network — freeze time or stub network with Timecop or WebMock VCR; see 1.3s vs 0.01s speed wins), order dependence (shared mutable state — use rspec --order random and rspec bisect or inject dependencies), and race conditions (parallel IO or threads — use StringIO, fibers, or isolate resources).

AI-written summary · about

  1. 0:00Flaky tests introduction
  2. 2:47Defining flaky tests
  3. 4:37Non-determinism in tests
  4. 7:25Fixing tests with mocking
  5. 11:42Network-related flakiness
  6. 16:24Order-dependent flaky tests
  7. 21:46Debugging shared state
  8. 28:17Race conditions in tests
  9. 33:41Fixing race conditions
  10. 39:06Summary and cheat sheet
  11. 43:03Q&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.