Skip to content

Coverage thresholds in practice

Coverage is a floor, not a target; the industry's honest range is 70-80% line, 60-75% branch, with 100% on authentication and payment paths.

Metric

Industry range

High-performing teams

When it matters

Line coverage

60-80%

80-90%

Overall codebase

Branch coverage

50-70%

75-85%

Logic-heavy modules

Auth / payment paths

100%

100%

Zero tolerance

Mutation score

40-60%

60-80%

Where quality dominates

The line/branch gap is the important one: 80% line coverage with 50% branch means every line was executed but half the branches — the if/else cases, the error paths — were never exercised. Branch coverage is the honest metric. Mutation testing (see mutation-test) is the strongest metric: it modifies the code and checks whether tests fail, so 40-60% mutation score on real production code is meaningful, and 60-80% is gold standard.