When rcov generates a report, it shows "total coverage" and "code coverage" for each file. What's the difference between the two metrics?
From http://www.rubydoc.info/github/relevance/rcov/master/Rcov/FileStatistics
total_coverage is:
Total coverage rate if comments are also considered "executable", given as a fraction
code_coverage is:
Code coverage rate: fraction of lines of code executed, relative to the total amount of lines of code (loc).
Unless a project's comments are considered executable, the most valuable metric will be "code coverage".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With