Flaky Tests sind Tests, die ohne Code-Änderungen inkonsistent bestanden oder fehlgeschlagen werden — manchmal bestanden, manchmal fehlgeschlagen beim gleichen Code. Sie sind ein ernstes Problem, da sie das Vertrauen in die Test-Suite untergraben. Das Verständnis ihrer Ursachen und Lösungen ist wichtig.
Was Flaky Tests sind und warum sie schädlich sind
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.
