Flaky tests zijn tests die inconsistent slagen of mislukken zonder codewijzigingen — soms slagen, soms mislukken op dezelfde code. Ze vormen een ernstig probleem omdat ze het vertrouwen in de testuite ondermijnen. Het begrijpen van hun oorzaken en oplossingen is belangrijk.
Wat flaky tests zijn en waarom ze schadelijk zijn
A FLAKY test gives INCONSISTENT results (pass sometimes, fail other times) on the SAME code:
→ harmful: ERODES TRUST — people start ignoring failures ("oh, it's just flaky") →
real failures get missed too
→ waste time on false alarms / re-runs; break CI; reduce confidence in the whole suite
→ Flaky tests are worse than no test if they make people distrust all tests.
