Flaky tests ऐसे टेस्ट हैं जो code में बदलाव के बिना असंगत रूप से pass या fail होते हैं — एक ही code पर कभी pass, कभी fail। ये एक गंभीर समस्या हैं क्योंकि ये test suite में विश्वास को नष्ट करते हैं। इनके कारणों और समाधानों को समझना महत्वपूर्ण है।
Flaky tests क्या हैं और ये क्यों हानिकारक हैं
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.
