Test Audit

Find tests that cannot fail — bodies that assert nothing, assertions swallowed by `catch {}`, and changes that weaken, delete or disable coverage. Parses with the TypeScript AST (never regex) and reports every finding with a machine-checkable witness. Use when reviewing a PR that touches `*.test.*` and you need to know whether it made the suite weaker (a gutted test passes MORE reliably, so a green test run proves nothing); when asked what is wrong with a repo's tests or to sweep for tests that verify nothing; when asked to file issues for test-quality debt; or when deciding whether a rule is trustworthy enough to block on. Also triggers on "空跑的测试", "测试有没有用", "test quality", "vacuous test", "did this PR weaken the tests".

ArcBlock 9eaebac 26 files · 108.4 KB Updated

File contents

ArcBlock/agent-skills/tree/main/plugins/agentloop/skills/test-audit commit 9eaebac8ab

Frequently asked questions

npx skillmds@latest add arcblock/test-audit