แม้จะมีเจตนาดี ทีมก็ยังตกหลุม testing anti-pattern — แนวปฏิบัติที่ทำให้เทสต์เปราะบาง ช้า ไม่น่าเชื่อถือ หรือมีคุณค่าต่ำ การรับรู้และหลีกเลี่ยงมันสำคัญต่อการรักษา test suite ที่แข็งแรงและมีคุณค่า
Anti-pattern ด้านคุณภาพของเทสต์
✗ TESTING IMPLEMENTATION DETAILS → tests coupled to internals → break on every refactor
(brittle) → test BEHAVIOR/outcomes instead
✗ FLAKY tests → intermittent failures erode trust → people ignore failures (real ones too)
✗ OVER-MOCKING → mocking everything → tests verify mock interactions, not real behavior;
brittle and give false confidence
✗ Tests with NO meaningful assertions → run code but verify nothing (false coverage)
✗ GIANT tests checking many things → unclear what failed; hard to maintain
