-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Improve rake task report on failure #400
Improve rake task report on failure #400
Conversation
Could you please add a test for this (so nobody breaks it in future) |
I echo Oleg's request for a test. Can I just confirm (because I'm too lazy to check) that the rake task will still return non-zero exit status if the task fails? It would be useful if such a test proved that. |
Thank you guys for your feedback. @mattwynne
in the block given to rake's sh. So, PR is not finished yet. |
@avakarev please let us know when the PR will be ready for review |
Oleg, you're not asking him for an estimate are you? ;) |
Estimation? What a nice word, what does it mean? ;) |
…ktrace and returns correct exit status code
Here we go. |
sh(cmd.join(" ")) | ||
sh cmd.join(" ") do |ok, res| | ||
# With this block, rake will not append its backtrace to | ||
# cucumber's report on failures. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this comment. The git logs will point us to your commit messages and tell us why the code looks the way it does.
@mattwynne Thanks for your fast feedback. I've just noticed that Travis failed on ruby 1.8.7 and jruby suits. My fault regarding 1.8.7: there is no open3#popen2e. Trying to figure out what's wrong with jruby. |
On 21 Mar 2013, at 21:49, Andrey Vakarev [email protected] wrote:
|
@mattwynne I think this is because there is "rake" in spec name ;) |
Yes. I will move tests to Cucumber's feature. And make sure that jruby works before committing :-) |
Could you guys please review my last changes? |
Great! Don't worry about the old commits, it's cool. |
…lure Improve rake task report on failure
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
It will clean up output from rake's "rake aborted!" reports on failures.
Failure in this case when sh method got exit status != 0
Before:
After: