mirror of
https://github.com/mattpocock/skills.git
synced 2026-07-29 02:52:42 +07:00
tdd: add tautological-test anti-pattern
Tests whose assertion is recomputed the way the code computes it pass by construction and give zero confidence. Add it as a peer of the existing implementation-coupling anti-pattern: a Philosophy principle, a per-cycle checklist gate, and a BAD/GOOD example pair in tests.md. Includes a patch changeset. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
a116824938
commit
43ea0884b0
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"mattpocock-skills": patch
|
||||
---
|
||||
|
||||
Add the **tautological test** anti-pattern to the `tdd` skill. Tests whose assertion is recomputed the way the code computes it pass by construction and give zero confidence — distinct from the implementation-coupling anti-pattern already covered. Added as a peer at the same three sites: a Philosophy principle (expected values must come from an independent source of truth), a per-cycle checklist gate, and a BAD/GOOD example pair in `tests.md`.
|
||||
Reference in New Issue
Block a user