-
Notifications
You must be signed in to change notification settings - Fork 552
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
Incorrect results on Travis CI #360
Comments
Strangely, I'd like to add that using the Code Climate gem seems to work directly despite the fact that it's using the same version of SimpleCov under the hood. |
I can't really diagnose your problem without any code or more information, but it may be related to running parallel specs, the command you run the tests with locally vs. on ci, or your merge timeout, if any. Please see #340 and report back. |
Sorry for the lack of details. Hopefully the points below help
|
Without more code there's really nothing I can do. |
@michaelmior I had a similar problem with Circle CI. I think the problem might be that the gems are being installed in your apps directory and they're being added to simple cov report. I was able to resolve this using an |
@whatasunnyday Thanks! That did the trick. I forgot that by default Travis configures bundler to install dependencies in |
@bf4 Would you be interested in a PR? I had the same problem today and spent 10 mins figuring it out. |
Sure. I've had this problem in other situations as well when I forget that I've bundled gems in the current dir, like when I use bundle standalone ( It looks like only the Rails profile excludes @colszowka @sferik @xaviershay Any reason not to put these in the Per travis docs
(via the bash-fu |
Sorry I missed your question when you first asked it. I was just bitten by this today. I'd support adding |
For completeness:
Going to re-open this ticket. |
This has been added and released in version 0.10.0. Please reopen this issue if that doesn’t solve it for you. |
Locally I get ~83% coverage, but I only get ~52% on Travis CI. Perhaps it's not a SimpleCov bug, but hoping someone might have some ideas. Using SimpleCov 0.9.1. Ruby version is identical in both environments (
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]
). Tests are run with RSpec 3.1.0. Any suggestions appreciated :)The text was updated successfully, but these errors were encountered: