scrap4rb reads Minitest test files and scores each test for size, branching, mocking, weak assertions and duplicated scaffolding. Per file it reports a refactor pressure, a remediation mode and an actionability class for an AI assistant. A Ruby port of the SCRAP algorithm by Robert C. Martin.
Required Ruby Version
>= 3.2
Authors
Robert Hopman
Versions
- 0.1.0 October 02, 2026 (19 KB)