-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
running rake with .simplecov and rspec runs coverage report twice, second report at 0% #581
Comments
Thanks for the report! You don't happen to have an example repository to reproduce this, do you? :) |
@PragTob Yes, a Rails app that exhibits this behavior is here: https://github.com/osu-cascades/ecotone-web/tree/simplecov-581 Steps to reproduce:
Files to notice: Thank you! |
@ybakos thank you very much for creating a sample to reproduce this error! ❤️ Sadly, I won't get into working on it too soon I fear :| Maybe one of the others can or PRs are also welcome, time is tight right now. This should speedup the process a lot though 🚀 |
@ybakos (and others interested) - the gem 'simplecov', require: false In your
|
@ivanovv Thank you, but this doesn't seem to solve the described issue. Gemfile:
rails_helper.rb:
.simplecov:
Running |
See simplecov-ruby/simplecov#581 (comment) This doesn't really solve the issue, but I'm doing it anyway.
See the description here: |
Project is Rails 5.x with rspec.
When configuring simplecov via spec/rails_helper.rb like this:
running
rake
results in the expected behavior of simplecov generating a report once.If I change the rails_helper.rb config to just:
And use a .simplecov config file like this:
The coverage report is generated twice. The first report is as expected, but then gets overwritten by the second report, which displays 0% coverage for all classes.
If I just run
rspec
instead ofrake
, then only one genuine coverage report is generated.The text was updated successfully, but these errors were encountered: