Skip to content
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

SimpleCov affecting exit code of bacon #269

Closed
fabiopelosin opened this issue Dec 20, 2013 · 8 comments · Fixed by LocalOrbit/localorbit#33
Closed

SimpleCov affecting exit code of bacon #269

fabiopelosin opened this issue Dec 20, 2013 · 8 comments · Fixed by LocalOrbit/localorbit#33
Labels

Comments

@fabiopelosin
Copy link

SimpleCov causes bacon to exit with a zero exit code even in case of failures/errors. The issue affects CI as failures are simply not reported and can go undetected.

The issue is present at least since version 0.8.1, but something more subtle might be going on.


As code speaks louder than words consider the following example:

fabiopelosin added a commit to CocoaPods/CocoaPods that referenced this issue Dec 20, 2013
@tvdeyen
Copy link

tvdeyen commented Jan 7, 2014

Same problem for Alchemy CMS: https://travis-ci.org/magiclabs/alchemy_cms/jobs/16516963#L403

When I remove SimpleCov from spec_helper then the failing test suite exits with 1.
With simplecov they fail with 0, what causes travis to mark the builds as success.

0.8.1 and 0.8.2 both have this issue.

Downgrading to 0.7.1 fixes the problem.

My Gemfile: https://github.com/magiclabs/alchemy_cms/blob/master/Gemfile
My gemspec: https://github.com/magiclabs/alchemy_cms/blob/master/alchemy_cms.gemspec
My spec helper: https://github.com/magiclabs/alchemy_cms/blob/master/spec/spec_helper.rb

@colszowka
Copy link
Collaborator

:( It assumes some of the recent changes to lib/simplecov/defaults.rb must have caused this. I'll try to look into it soon!

tvdeyen added a commit to AlchemyCMS/alchemy_cms that referenced this issue Jan 7, 2014
SimpleCov >= 0.8.1 has exit code issues: simplecov-ruby/simplecov#269
@tvdeyen
Copy link

tvdeyen commented Jan 7, 2014

Ok, it's getting interesting :)

With simplecov 0.7.1 it fails for Rails 4.1.0.beta1 environments.
Simplecov 0.7.1 and Rails 3.2 is fine.

tvdeyen added a commit to AlchemyCMS/alchemy_cms that referenced this issue Jan 7, 2014
SimpleCov >= 0.8.1 has exit code issues: simplecov-ruby/simplecov#269
tvdeyen added a commit to AlchemyCMS/alchemy_cms that referenced this issue Jan 7, 2014
SimpleCov >= 0.8.1 has exit code issues: simplecov-ruby/simplecov#269
@jigfox
Copy link

jigfox commented Jan 8, 2014

I have the same issue with cucumber features, I had failing features, but the build still succeeded because of Exit Code '0'

@jasonroelofs
Copy link

I have also run into this problem with version 0.8.x. Downgrading to 0.7.1 fixes it.

@jasonroelofs
Copy link

I went looking through some of the history of lib/simplecov/defaults.rb and found one potential candidate for this bug: 5143ee6#diff-99ecb32ffe1919f41b2741f74b68dfa8L82

@colszowka
Copy link
Collaborator

@jasonroelofs Thanks - I'll try and revert the exit status change

albus522 added a commit to LocalOrbit/localorbit that referenced this issue Feb 11, 2014
@colszowka
Copy link
Collaborator

Simply reverting that particular change did not help :( This issue is very likely the same as #281, and although that one came later, there is more activity over there, so I'll close this in favor of the other one. Please go on with the discussion there :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants