John Lam 1997 — 2026

Code coverage isn't everything

Today, Scott Hanselman wrote about why test coverage is important. While this is certainly true, it is important to not fall in love with code coverage as an absolute metric. This is due to the fact that code coverage can only tell you about faults of commission, not faults of omission.

For more details, see this post.

2 archived reader comments

Eric SInk (2004-02-18)

Yes, code coverage doesn’t say anything about faults of omission.

However, too many times I’ve seen people use this fact as an excuse not to do code coverage at all, which I think is a rather unfortunate path.

John Lam (2004-02-18)

Agreed.

The other unfortunate side of code coverage are non-technical managers that insist on an “x %” policy before they decide that it’s good enough to ship.