Characterization Tests

Pin down the existing behaviour of untested or legacy code with characterization (golden-master / approval) tests before you change it, so refactors and upgrades stay safe. Use when you must modify, refactor, or upgrade code that has no tests, want to capture current behaviour as an oracle even where it looks wrong, or need a safety net before a risky change. Distinct from /tdd, which specifies new behaviour test-first; this tests around existing behaviour. Pairs with /sculpt-code and /upgrade-dependencies.

MAHDTech baca584 4.3 KB Updated

File contents

MAHDTech/agent-skills/tree/main/skills/engineering/characterization-tests commit baca584c76

Frequently asked questions

npx skillmds@latest add mahdtech/characterization-tests