Measure code coverage across statements and branches with a quality rating.
The code coverage is the share of total statements that statements covered represents, expressed as a percentage. The same figure is also shown per 1,000 and as a "one in every N" odds statement, which is easier to reason about when the rate is very small. Absolute counts hide scale — a rate normalises the number so you can compare periods, channels or cohorts of different sizes, where higher is better.
Code Coverage
Code Coverage = Statements covered ÷ Total statements × 100
Code Coverage = Statements covered ÷ Total statements × 100 The code coverage is the share of total statements that statements covered represents, expressed as a percentage. The same figure is also shown per 1,000 and as a "one in every N" odds statement, which is easier to reason about when the rate is very small.
Absolute counts hide scale — a rate normalises the number so you can compare periods, channels or cohorts of different sizes, where higher is better.
This calculator takes 2 inputs: Statements covered, Total statements. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.