-
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
Let's report actionable minimum numbers for Branch Coverage #1115
Comments
I think we can accomplish this by changing: to use |
Digging around (haha, yes pun intended) a little bit, it looks like almost all other occurrences of this issue were handled here: |
Hi Tobias! |
Here's a potential fix: (regardless of whether it fixes this specific issue, it moves us closer to consistency and having actionable numbers to set min coverage with) |
Currently, simplecov is rounding up when delivering branch coverage results. If we then set minimum branch coverage to the reported amount, the next spec run will fail.
Example:
763 / 777 = 0.98198198198
So the ideal number for the report would be 98.19, i.e. the floor of the 2nd decimal place.
Running specs with 98.19 will pass, as expected.
Reproduction steps:
Set up Rubocop RSpec
Run
bundle exec rake
Check out this branch if you want to reproduce with the exact coverage metrics described here:
The text was updated successfully, but these errors were encountered: