Flaky tests - Fighting nightmares

Ramona Schwering
Ramona Schwering

September 25, 2020

This content is also available in german

A liar will not be believed even if he tells the truth.
CityJS London 2020
FemTechConf 2020
eCommerceCamp Jena 2020
c't webdev 2021
PottJS 2023


"A liar will not be believed even if he tells the truth" - Aesop

A test can also be such a liar: Unreliable tests are living nightmares for anyone who writes automated tests or even pays attention to their results. Sometimes they pass, sometimes they don't, and therefore do not give a valid statement about the state of the software. In the worst case, they can impair the credibility of the entire test suite. It doesn't matter whether you write unit, integration or end-to-end tests, you can counter them in any way you like.

I've spent hours and hours on such tests, and I want to share my path through them and the lessons learned from them: So that together we can avoid or even get rid of these nightmares.