Index#percent_tested is average of all report percentages
sdelano opened this issue · 1 comments
sdelano commented
Instead of being a percentage of all the code tested in a project, CoverMe::Index#percent_tested returns an average of the coverage percentages for individual files. Take the following scenario into account:
file_a.rb: 99loc, 100% coverage
file_b.rb: 1loc, 0% coverage
percent_tested for project: 50%
Based on the comments and spec tests, this seems intentional. I am wondering why it is this way and not the actual coverage percentage.
sdelano commented
This issue was closed when my pull request was merged in. Thanks!