Search Tools

Software Quality, Defect Density and Test Progress

Report an issue

Track software quality progress with consistent measurement units and denominators for one release.

Keep size-measurement conventions, defect deduplication and reopening rules, and planned test scope consistent for the same release and reporting date.

Do not use defect density or pass rate alone to decide on release readiness or evaluate a team.

Specify one release. Use the same reporting date for all counts.

Use the same line-counting convention for LOC and KLOC. FP is reported as defects/FP and should not be compared directly with LOC-based measures.

LOC and FP must be whole numbers. KLOC is measured in thousands of lines. A blank is not treated as 0.

Unique defect IDs identified before and after release. Exclude duplicate reports.

A subset of the total: unique defects first discovered after this version was released.

A subset of the total: unique defect IDs with a verified fix. Include defects that were subsequently reopened.

A subset of the fixed count. Count each reopened ID only once and only if it has not yet been fixed again.

Unique cases in the same test plan, not the number of test executions.

Planned cases executed at least once. Do not count repeat executions separately.

A subset of executed cases whose latest result at the reporting time is a pass.

Results

Results update automatically when the required values are entered.

Method, applicability and sources

Calculation method

Defect density=total detected defects÷size, reported per 1000 lines for LOC, per KLOC, or per FP. Effective removals=defects fixed at least once−currently reopened defects. Removal rate=effective removals÷total detected defects×100. Unresolved carryover=total detected defects−effective removals. Pre-release detection percentage=(total detected−escaped)÷total detected×100. Test execution rate=executed cases÷planned cases×100. Pass rate among executed tests=passed cases÷executed cases×100. Pass rate across the plan=passed cases÷planned cases×100. Percentages with a denominator of 0 are not calculated or displayed as 0%.

Worked example (hypothetical values)

Illustrative example: release v1, size 10 KLOC, 20 detected defects, 0 escaped, 15 fixed, 0 reopened, and 100 planned tests with 80 executed and 60 passed. Defect density is 2 defects/KLOC, removal rate 75%, unresolved defects 5, execution rate 80%, pass rate among executed tests 75%, and pass rate across the plan 60%.

Applicability and limitations

Counts with a consistent measurement scope and duplicate-removal rules for defect IDs and test cases within the same release. Excludes ranking individuals or teams, assessing defect severity, release decisions, estimating DRE across pre- and post-release removal, and counting repeated test runs as separate events.

Method and sources

Method: B103 software quality arithmetic v1.0 (2026-11-13). Data recorded: 2026-11-13.