ફ્લેકી ટેસ્ટ્સ એ ટેસ્ટ્સ છે જે કોડમાં કોઈ બદલાવ વિના અસંગતভાવે પાસ કે ફેલ થાય છે — કેટલીકવાર પાસ થાય છે, કેટલીકવાર એક જ કોડ પર ફેલ થાય છે। તે એક ગંભીર સમસ્યા છે કારણ કે તે ટેસ્ટ સ્યુટમાં વિશ્વાસ નષ્ટ કરે છે। તેમના કારણો અને સુધારાને સમજવું મહત્વપૂર્ણ છે।
ફ્લેકી ટેસ્ટ્સ શું છે અને તેઓ શા માટે હાનિકારક છે
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.
