Flaky TestsFighting Nightmares
View Slide
Flaky Tests @leichteckig
The boy who cried wolfPhoto by hp koch on Unsplash
Flaky Tests @leichteckig–Aesop„A liar will not be believed, even when he speaks the truth.“
An ugly pattern emergesPhoto by Pelly Benassi on Unsplash
Flaky Tests @leichteckig–Someone from my development team„Oh that test, yeah it sometimes fails, just kick the build off again.“
Spotting the causesPhoto by Paul Green on Unsplash
Test-sided causesPhoto by Ferenc Almasi on Unsplash
Flaky Tests @leichteckig🗝 📂 🔗 ⏱ 📑
Environment-sided causesPhoto by Taylor Vick on Unsplash
Flaky Tests @leichteckig🚰 🔗 📦
Product-sided causesPhoto by Markus Spiske on Unsplash
Flaky Tests @leichteckig–Sam Saffron„In some cases when fixing a flaky tests, the fix is in the app,not in the test.“
Photo by Franck V. on UnsplashFinding a way out
Start an honest discussion with your teamPhoto by me
Flaky Tests @leichteckig🗑 ♻ 🤷 ☣
Run test in a loopPhoto by Nareeta Martin on Unsplash
Keep tests isolatedPhoto by Ryan Loughlin on Unsplash
Flaky TestsTest data management@leichteckig
Optimise test structurePhoto by Kaleidico on Unsplash
Automatic test retriesPhoto by Jim Wilson on Unsplash
Flaky TestsRetries in Gitlab@leichteckig
Flaky TestsRetries in Cypress@leichteckig
Add purpose built diagnostic codePhoto by Agence Olloweb on Unsplash
Flaky TestsAdd purpose built diagnostic code@leichteckig
Matching waiting strategyPhoto by Phil Hearing on Unsplash
Exit!Photo by Michael Jasmund on Unsplash
Thank you!Photo by Wilhelm Gunktel on Unsplash Twitter: @leichteckig