-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
rake spec
should have a non-zero return value for failing specs
#1016
Comments
Thanks for reporting this. Do you have an example repro project you can provide? I'm pretty sure there's something specific about your environment causing this as 2.14 has been out for many months and no one's ever reported this before. You might also want to try upgrading to RSpec 3 as that has some changes related to this area. We're no longer using an |
For the moment, 'rake spec' returns 0 for failing specs. Therefore, travis shows green even when specs are failing. This has to be fixed. rspec/rspec-rails#1016
@myronmarston : Thanks for the quick reply. Then, probably, I've got another issue with this project, since we are in the process of upgrading from Rails 3.2 to Rails 4. You can find the Is it wise to try to upgrade to RSPec 3 simultaneous to the Rails upgrade? This could be the next step. Or, as a workaround, I could use |
No. I would do the upgrades one at a time. If/when issues arise, it's too hard to tell which part is at fault when you upgraded two major pieces at the same time.
Thanks. Can the issue be repro'd via that repository? Can you paste step-by-step instructions (e.g.
Personally, I almost never use the rake task. The |
This might also be the same issue reported in rspec/rspec-core#1196. You can try backporting the fix @JonRowe did there and seeing if that fixes your issue. |
ReproductionTo reproduce the original issue of the missing return value when using
|
SimpleCovI had a look at rspec/rspec-core#1196. We do have also simplecov in our spec_helper. Deactivating simplecov and coveralls causes the issue to disappear. I've just seen a comment in the simplecov readme:
SolutionModify the # Gemfile
# ...
gem 'simplecov', '~> 0.7.1', require: false Thanks for helping! |
@fiedl Thanks for the reproducible SimpleCov at_exit bug. It helped me provide evidence SimpleCov is fixed in master :) https://travis-ci.org/bf4/wingolfsplattform/builds |
I've recently updated to the current version
rspec-rails 2.14.2
.Expected Behavior
With failing specs, the task
rake spec
should return a non-zero return value.Present Behavior
With failing specs, the task
rake spec
does return0
.Therefore, for example, every build on travis-ci is green, even if specs are failing.
Does anyone know if this is a bug or how to fix this?
I've already tried to ensure the setting manually---without success.
Thanks!
rake 10.3.1, rails 4.1.1
The text was updated successfully, but these errors were encountered: