~/talk

Living with flaky tests

Talkat EmberFest 2023 · 2023-09-21..09-22· [testing, devops-and-delivery]
slides:none on file

Shows concrete causes and fixes: Ember + QUnit tests flake from hidden asynchrony (dynamic imports for highlight.js in a syntax-highlighter modifier) and from leaked global state (tests pass or fail depending on order or QUnit seed). Reproduce by forcing the flaky test to always fail, then fix by registering async work with waitForPromise (em-test-waiters) or by scoping globals (reset in beforeEach or use Ember Browser Window service). Skipping hides the real bug.

AI-written summary · about

  1. 0:00Understanding flaky tests
  2. 1:57Test-driven development
  3. 7:07Methodical debugging
  4. 9:34Solving timing issues
  5. 25:08Addressing leaky state
  6. 33:23The value of flaky tests
~/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.