~/talk

Common Mistakes that make test cases flaky and how to avoid them

Talkat RubyConf India 2023 · 2023-08-26..08-27· [testing, developer-experience]
slides:none on file

Defines five concrete flakiness causes — timing and synchronization, environment/configuration, non‑isolated tests, third‑party dependencies, and poor test data management — and maps each to fixes: time‑freeze and Rails timezone config, DatabaseCleaner and FactoryBot, Capybara wait/content checks, and recorded HTTPs via VCR and WebMock. Recommends parallel jobs and rspec‑retry to isolate transient failures. Claims a 10k+ example suite goes from CI blocks (5 failures in a 1,049‑example container) to 100% green, ~50% RSpec time reduction and ~80% cost drop.

AI-written summary · about

  1. 0:00Introduction to flaky tests
  2. 1:30Understanding test flakiness
  3. 5:23Common causes of flakiness
  4. 15:21Debugging strategies
  5. 16:28Prevention techniques
  6. 21:54Mitigation tools and habits
  7. 24:12Real-world success and Q&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.