This Code is CRAP

TL;DR: 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.

From · · 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.

Read the original on Googleblog

How we make summaries

React

Sign in to react and comment.

Comments (0)

Life is short. Keep it sweet. Respect others' opinions and be kind!

    Recommended next

    More decks on google and related topics.