Test Coverage

Coverage is a completeness metric. High coverage does not guarantee quality, but low coverage is a clear risk signal for untested areas.

Coverage % = (covered ÷ total) × 100 for the item type you defined.

Tip: Keep “Covered Items” and “Total Items” on the same basis (period, units, and population) before calculating Test Coverage.

Cluster: Software Testing hub · Professional KPIs · Percentage guide

Test coverage answers: of everything we said we would cover, how much has at least one test?

Enter covered items and total items (requirements, modules, branches, or conditions—pick one definition and stay consistent).

Items with at least one mapped test
Total requirements, modules, or conditions in scope

Coverage %

Understanding Test Coverage

How we calculate. Coverage % = (covered ÷ total) × 100 for the item type you defined. The form uses the same arithmetic as the worked examples on this page. See our methodology and accuracy policy.

Real-world scenario: A typical Test Coverage case uses covered items 170 and total items 200. Enter the same figures below to reproduce the worked path.

What is Test Coverage?

Coverage is a completeness metric. High coverage does not guarantee quality, but low coverage is a clear risk signal for untested areas.

  • Requirements coverage: requirements with ≥1 test case
  • Code coverage: lines/branches executed by automated tests
  • Pair with pass rate: coverage without passing tests is incomplete

The Formula

Test Coverage
Coverage % = (Covered items ÷ Total items) × 100

Worked Example

Scenario: A module has 200 requirements. Test cases map to 170 of them.
Step 1: Covered = 170
Step 2: Total = 200
Step 3: (170 ÷ 200) × 100 = 85%
Answer: Test coverage is 85%.

Common Use Cases

  • Release gates: require minimum coverage before ship
  • Risk-based testing: prioritize uncovered critical areas
  • Automation roadmaps: track coverage growth over sprints

Pro Tips

  • State the unit: “85% requirement coverage” ≠ “85% line coverage”
  • Watch false confidence: covered items can still have weak tests
  • Track deltas: coverage trend often beats a single snapshot

Limitations: Test Coverage results are estimates for learning and QA planning—not contractual SLAs. Align definitions with your org’s quality glossary before executive reporting.

FAQ

Is 100% coverage required?

Rarely practical. Set risk-based targets (e.g. 100% for critical paths, lower for low-risk utilities).

How does this differ from requirement coverage?

Requirement coverage is the same formula scoped only to requirements. Use that page when your inputs are requirements specifically.

Authoritative References

For software quality metrics definitions, consult established engineering sources:

  • ISTQB — software testing glossary and practices
  • ISO/IEC 25010 — systems and software quality models
  • IEEE — software engineering standards