Test Sloc Cut

Shrink a test suite without losing a single asserted fact or covered branch — the fact-matrix method: read every test into a matrix of the propositions it pins, measure per-test branch coverage and a covering set, and delete only on the intersection of both oracles; relocate a fact to a cheaper layer only after a mutant proves the new assertion catches it. Use when asked to trim, dedupe, consolidate, simplify, shrink, or reduce tests or test SLOC, when a suite has grown by accretion (the same value asserted in a pure test, a DB test and an end-to-end test; tests whose bodies differ by one argument), when deciding whether to delete, fold, parametrize, or share a helper across tests, when a reviewer calls a test file bloated or redundant, or before cutting any test on 'coverage is unchanged' alone. Python/pytest with pytest-cov. Ships the tokenizer line counter, the per-test coverage and covering-set script, the mutant check, and the four-agent investigation briefs.

dashed b201b23 6 files · 42.3 KB Updated

File contents

dashed/claude-marketplace/tree/main/plugins/test-sloc-cut/skills/test-sloc-cut commit b201b23f34

Frequently asked questions

npx skillmds@latest add dashed/test-sloc-cut