-
Notifications
You must be signed in to change notification settings - Fork 554
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
Multi-line statements not being counted accurately #394
Comments
so that we can reproduce this, can you provide a small snippet of the code and tests that create this bug? It would be of great help. |
@bf4 I've created a repo with the code to reproduce this in (https://github.com/adampope/simplecov-multi-line-repro). In doing so I've found the cause. We are using the following snippet in
With that code multi-line statements do not get counted correctly. With Without Any ideas on ways to modify this to correctly handle the multi-line statements? |
We found a better way of solving the problem of tracking all files, I've added a comment to #16 so I'll close this ticket. |
I'm using 0.10 on a Rails 4.2 project with ruby 2.0.0-p643. I'm seeing lots of occurrences of statements that span multiple lines not being counted as covered, or only 1 or the multiple lines being counted. For example, I have a concern which is completely tested but reports as 77%.
If I simply reformat the code onto single lines I get 100% coverage.
The text was updated successfully, but these errors were encountered: