test-cleanup
Prune tests that guard no behavior: delete or rewrite every test that depends on the past (asserts removed code stays gone), on nothing (cannot fail), on the implementation (breaks on refactors that keep behavior), or on a behavior another test already guards. Classifies each test by what it depends on, removes production code that existed only for the pruned tests, runs the suite, and reports what was deleted, rewritten, and kept as uncertain. Edits the working tree only and never commits. Use when the user asks to "prune tests", "clean up the tests", "remove useless tests", "delete redundant tests", "trim the test suite", "which tests are worth keeping?", or says the tests break on every refactor. Not for finding defects in a diff (use code-review) or for adding missing coverage.
- License
- MIT
Pinned to revision d9c80428ff4e, so it is the text this page describes rather than whatever the author pushed since.
Files
Every link opens the file at its source, pinned to the revision this page describes.