Rcov show files wih 0% code coverage not considered

418 Views Asked by At

I'm currently running rcov in a Rails Project (ruby 1.8.7). I let Jenkins take care of the overview of the code coverage.

Unfortunately only files that have a code coverage greater than 0.0% are shown.

This leads to a wrong total coverage.

Is there a way to include all files that have not been touched in the test run?

1

There are 1 best solutions below

2
On

You'll need to set the threshold to 101, so it'll include the files with 100%.

It depends on your installation where you should put this. Here is the documentation for RSpec 1.x for example.