From Googleblog · · 2m
TL;DR: This Code is CRAP
Google introduces CRAP, a metric that identifies risky code by combining complexity and test coverage.
CRAP measures code risk by combining cyclomatic complexity with test coverage, helping teams spot dangerous code that needs attention. Google introduces CRAP, a metric that identifies risky code by combining complexity and test coverage. CRAP stands for Change Risk Analysis and Predictions. It's a formula that combines cyclomatic complexity with test coverage to identify risky code.
- Meet CRAP, the metric
- Why complexity matters
- Coverage alone isn't enough
- The CRAP formula
Read the story version — the same reporting as a swipeable deck of 12 cards.





