-
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
doesn't count files under lib #12
Comments
By default, Rails does not |
however perhaps there is a deeper issue? see #221 |
so this means: if you use SimpleCov for getting coverage on a Ruby Gem, then you're out of luck, because it doesn't consider files under This feels completely broken. the project description says: "Code coverage for Ruby" , not "for Rails" this should be fixed. |
@tilo it works completely fine, you just need to require your code after simplecov was started as the README indicates. Many people use simplecov for gem code coverage and it's perfectly fine. |
I have this rails project in which I try simplecov. I had 100% coverage. then I created a dummy class in lib, and put a dummy method into it. ran spec again, the coverage was still 100%. Now I moved the same file into app/model. the coverage changed to 98%. Why didn't the files under lib get counted?
The text was updated successfully, but these errors were encountered: