Testing Anti Patterns

Use when reviewing tests for fragility, over-mocking, false positives, missing production wiring, or assertions that do not prove the requirement.

DYAI2025 510a73e 614 B Updated

File contents

Testing Anti-patterns

Watch for:

  • Tests that assert implementation details instead of behavior.
  • Mocks that replace the behavior being tested.
  • No negative, boundary, or failure-path coverage.
  • Snapshot-only assertions.
  • Tests that pass without production wiring.
  • Flaky timing or network dependencies without isolation.

For each issue, propose the smallest test change that would fail on the current bug.

DYAI2025/Plumbline/tree/main/config/claude/skills/testing-anti-patterns commit 510a73ed2e

Frequently asked questions

npx skillmds@latest add dyai2025/testing-anti-patterns