Flaky testy to testy, które przechodzą lub nie przechodzą niespójnie bez zmian w kodzie — czasami przechoodzą, czasami nie przechodnie na tym samym kodzie. To poważny problem, ponieważ podkopuje zaufanie do zestawu testów. Zrozumienie ich przyczyn i sposobów naprawy jest ważne.
Czym są flaky testy i dlaczego są szkodliwe
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.
