You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test coverage drop when upgrading to 0.11.2 from 0.10.0 #467
The only difference between these two runs is the upgrade to simplecov 0.11.2 and running bundle.
I have noticed some files are in more sections with the newer version. For example, a file may show up in 1 and 2 of 4 in the 0_10 result set instead of just 1 of 4 in the 0_11 result set. The additional entries seem to have all lines as 0's. I'm guessing these extra all 0 entries are driving down the test coverage during the merge.
ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-darwin14.3.0]
Rails 4.1
RSpec 3.4.1
We are using parallel_tests 1.5.1 with 4 threads.
Tests are invoked with rake parallel:spec[4]
@David-Sharpe Setting track_files to false excludes all files with 0% coverage from the report, arbitrarily inflating our coverage metrics. Not including track_files false shows no ops as not being covered, deflating our coverage metrics.
What is the option for getting accurate coverage metrics?
Activity
David-Sharpe commentedon Mar 2, 2016
Problem comes from track_files. Setting track_files to false in spec_helper in the SimpleCov.start 'rails' block fixes this.
rdunlop commentedon Mar 11, 2016
@David-Sharpe Could this be caused by #441 ?
wkirby commentedon Jun 14, 2016
@David-Sharpe Setting
track_filestofalseexcludes all files with 0% coverage from the report, arbitrarily inflating our coverage metrics. Not includingtrack_files falseshows no ops as not being covered, deflating our coverage metrics.What is the option for getting accurate coverage metrics?
PragTob commentedon Feb 4, 2017
This should be fixed with the recent merge of the track files fix, if not please let us know