~/talk

Filip Hric: How to Write a Flaky Test Description: How (not) to Write a Flaky Test

Talkat TestCon Europe 2024 · 2024-10-22..10-25· [testing]
slides:none on file

Test flakiness breaks trust and slows delivery; fixing it requires concrete changes not slogans. Use Cypress or Playwright features: replace racing DOM selectors with deterministic checks like asserting element counts, remove network timing by cy.intercept empty array mock for the initial GET so the list is always empty, and avoid repeated UI logins by using cy.session caching login so backend is called once instead of 100 times. Also isolate parallel runs with separate test accounts and clean or seed staging data to stop infrastructure-driven flakes.

AI-written summary · about

  1. 0:00Test flakiness introduction
  2. 5:27Coping with flaky tests
  3. 8:16Flakiness from test suites
  4. 11:51Network flakiness solutions
  5. 16:08Parallel execution isolation
  6. 19:19Infrastructure flakiness causes
  7. 22:09Performance and abstraction
  8. 26:25Avoiding timeouts
  9. 30:18Scaling and flakiness axes
  10. 31:22Q&A tools and mocking
  11. 39:32Q&A desktop apps and parallelism
  12. 45:43Closing remarks
~/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.