เทสต์ flaky คือเทสต์ที่ ผ่านหรือไม่ผ่านอย่างไม่สม่ำเสมอ โดยไม่มีการเปลี่ยนโค้ด — บางครั้งผ่าน บางครั้งล้มเหลวบนโค้ดเดิม มันเป็นปัญหาร้ายแรงเพราะบั่นทอนความเชื่อมั่นใน test suite การเข้าใจสาเหตุและวิธีแก้ไขจึงสำคัญ
เทสต์ flaky คืออะไรและทำไมจึงเป็นอันตราย
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.
