Mesmo com as melhores intenções, equipes caem em anti-padrões de testes — práticas que tornam os testes frágeis, lentos, não confiáveis ou de baixo valor. Reconhecer e evitá-los é importante para manter uma suite de testes saudável e valiosa.
Qualidade de testes anti-padrões
✗ 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
