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