Read more

RCov: The difference between "code coverage" and "total coverage"

Henning Koch
December 20, 2011Software engineer at makandra GmbH

Code coverage is the ratio of code lines kissed by a test vs. the total number of lines in your source files. This sounds meaningful, but isn't.

Illustration money motivation

Opscomplete powered by makandra brand

Save money by migrating from AWS to our fully managed hosting in Germany.

  • Trusted by over 100 customers
  • Ready to use with Ruby, Node.js, PHP
  • Proactive management by operations experts
Read more Show archive.org snapshot

Total coverage additionally ignores whitespace and comments when computing the coverage ratio, which is what you want.

Posted by Henning Koch to makandra dev (2011-12-20 11:54)