Ground Truth
Tagged coverage
2 pieces
- · 4 min read
Coverage Measures What Ran, Not What You Checked
A test can execute a line and assert nothing about it. That line counts as covered and is completely unprotected, and no coverage tool can tell the difference. Assertion density predicts fault detection more strongly than coverage does, which is the mechanism underneath the whole coverage debate.
- · 7 min read
High Coverage Does Not Mean Safe Code: What the Research Actually Says
Control for suite size and the correlation between coverage and fault detection drops to low or moderate. Against real post release defects it is statistically insignificant. Two credible studies push back, and the disagreement is mostly about method. The claim that survives all of it is that coverage is a floor, not a target.