I test flaky sono test che passano o falliscono in modo incoerente senza modifiche al codice — a volte passano, a volte falliscono sullo stesso codice. Sono un problema serio perché minano la fiducia nella suite di test. Comprendere le loro cause e le soluzioni è importante.
Cosa sono i test flaky e perché sono dannosi
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.
