~/talk

Flaky tests

Talkat Jfokus 2023 · 2023-02-06..02-08· [testing]
slides:none on file

Flaky tests hide in async timing, UI animation and tiny locale quirks: one project has 9,000 unit tests vs 900 UI tests where unit runs in ~1 minute and UI runs ~40 minutes. Reproductions include a week‑based‑year format using 'Y' vs 'y' that flips the date a few days a year, a kiosk keyboard where clicking body inserts an accidental 'n' because Selenium clicks element centers, moving elements and transient scrollbars that “eat” clicks. Fixes include Selenite smart-waiting, disabling animations and fixed window sizes, saving slow‑motion videos with video-recorder-java or Selenoid/Testcontainers for postmortem.

AI-written summary · about

  1. 0:00Introduction to flaky tests
  2. 2:29Understanding test flakiness
  3. 7:23Case studies and root causes
  4. 12:30The role of Selenite
  5. 14:12Deep dive: Date logic bugs
  6. 18:30Deep dive: Interaction flaws
  7. 24:08Deep dive: Animation issues
  8. 27:45Deep dive: Usability findings
  9. 32:36Deep dive: Scroll bar interference
  10. 39:42Best practices and conclusions
~/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.