Legacy Code Testing

Adds tests to legacy code that has none, safely: characterization tests that pin current behavior (including bugs) before any refactoring, seam identification for breaking untestable dependencies, and a risk-ranked coverage strategy. Use for untested or inherited codebases. Triggers on: "add tests to legacy code", "this code has no tests", "characterization tests", "make this testable", "safe to refactor?", "pin down current behavior", "test this old module before we change it".

timwukp Updated

File contents

timwukp/agent-skills-best-practice/tree/main/skills/skills/legacy-code-testing commit decdc74e31

Frequently asked questions

npx skillmds@latest add timwukp/legacy-code-testing