-
Notifications
You must be signed in to change notification settings - Fork 76
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
:nocov:
is ignored with simplecov
#246
Comments
Hi @ereslibre, thanks for trying out the new I think your hunch is on the right direction. I will do a little more investigation and discuss with the team a plan to address this. Can you share with us your simplecov output? It's usually really helpful to have real life examples on where to test our fixes. If you don't feel comfortable sharing it here, you can also do it on our support channel at http://www.codeclimate.com/help. Again thank you and hopefully we will have a resolution for this soon. |
The project is libre software so you should be able to even reproduce the problem yourselves: https://github.com/smartbox-io/cell
Attaching the output here too: coverage.zip I'm wondering if I can open a PR against |
@ereslibre gracias! I think is worth opening an issue on |
Sure, I will do that and have a look. Thank you for your wonderful feedback! |
I'm going to keep this issue open while we find a resolution for this. PS: going to remove the |
@ale7714 As you can see I opened a PR. I open a discussion, because maybe what makes more sense is to add an option to generate a This way, if a user wants to use |
@ereslibre thank you for opening that PR and starting the discussion. |
Hey guys, Following a request from @efueger, I am posting here another example of this failure, if it helps to bring this issue back to the radar, since I am a bit OCD when it comes to my test coverage being at 100%...
If any additional information is needed, I am happy to provide. |
I'm marking this as help wanted. Simplecov has made it clear they don't intend to stabilize on a file format that includes this information and can be used by external tools, and their expectation is that any tools integrating with Simplecov should be a ruby gem that can work as a formatter for simplecov. Such a gem is unfortunately beyond the scope of what our test-reporter can include out-of-the-box. If anybody impacted by this issue is interested in helping out by writing a custom formatter for Simplecov and working with us to upgrade the test reporter to work with the output of that formatter, please let us know. |
Hello,
This project is supposed to have 100% coverage. If I execute it locally:
Travis has also this result: https://www.travis-ci.org/smartbox-io/cell/builds/292355378#L714
One line is marked as red in code climate: https://codeclimate.com/github/smartbox-io/cell/coverage/59efccf0f817224314000779, the problem is that as you can see, this method is wrapped with
:nocov:
, and the coverage percentage drops when it should not.My best guess is that
.resultset.json
does not report this line is skipped in any way, only that it was not covered (0 passes):Simplecov on its UI (the static page it generates) mark them as
skipped
, but I don't know if this only happens on the html renderer (I didn't look at simplecov source code).The text was updated successfully, but these errors were encountered: