Haven't tried it, but this might work:
After do |scenario|
Cucumber.wants_to_quit = true if scenario.failed?
end
Aslak
> Regards
> Tusar
>
> --
> You received this message because you are subscribed to the Google Groups "Cukes" group.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
>
>
--early-xmas maybe?
--say-uncle
or more seriously
--quick-quit -Q
It would be nice to have something like this for RSpec as well. Got
your ears on DC?
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
> On Tue, Jun 8, 2010 at 11:16 AM, aslak hellesoy
> <aslak.h...@gmail.com> wrote:
>> On Tue, Jun 8, 2010 at 10:15 AM, Matt Wynne <ma...@mattwynne.net> wrote:
>>> Please raise a ticket on lighthouse for this, preferably with an imaginative suggestion for the name of the command-line flag.
>>>
>>
>> --early-xmas maybe?
>>
>
> --say-uncle
>
> or more seriously
>
> --quick-quit -Q
>
> It would be nice to have something like this for RSpec as well. Got
> your ears on DC?
No - but http://github.com/dchelimsky/rspec-core/issues does :)
>
>
> --
> Rick DeNatale
>
> Blog: http://talklikeaduck.denhaven2.com/
> Github: http://github.com/rubyredrick
> Twitter: @RickDeNatale
> WWR: http://www.workingwithrails.com/person/9021-rick-denatale
> LinkedIn: http://www.linkedin.com/in/rickdenatale
>
D'oh - strike that, try this instead:
http://github.com/rspec/rspec-core/issues
> On Tue, Jun 8, 2010 at 11:16 AM, aslak hellesoy
> <aslak.h...@gmail.com> wrote:
>> On Tue, Jun 8, 2010 at 10:15 AM, Matt Wynne <ma...@mattwynne.net> wrote:
>>> Please raise a ticket on lighthouse for this, preferably with an imaginative suggestion for the name of the command-line flag.
>>>
>>
>> --early-xmas maybe?
>>
>
> --say-uncle
>
> or more seriously
>
> --quick-quit -Q
--boom -B
>
> It would be nice to have something like this for RSpec as well. Got
> your ears on DC?
>
>
> --
> Rick DeNatale
>
> Blog: http://talklikeaduck.denhaven2.com/
> Github: http://github.com/rubyredrick
> Twitter: @RickDeNatale
> WWR: http://www.workingwithrails.com/person/9021-rick-denatale
> LinkedIn: http://www.linkedin.com/in/rickdenatale
>
>>> On Jun 4, 4:45 pm, aslak hellesoy <aslak.helle...@gmail.com> wrote:
>>>
>>>> Haven't tried it, but this might work:
>>>
>>>> After do |scenario|
>>>> Cucumber.wants_to_quit = true if scenario.failed?
>>>> end
In the interim, I just added this to features/env.rb in one of my projects:
After do | scenario|
if ENV['qqcuke']
Cucumber.wants_to_quit = true if scenario.failed?
end
end
Then I can do something like
qqcuke=true rake cucumber
or any other way of running cuke.
> D'oh - strike that, try this instead:
>
> http://github.com/rspec/rspec-core/issues
Okay, I created the issue.
I'd write a patch if I knew what to call the option. <G>
Call it --hysteric. No 1-letter alias needed.
> --
> Rick DeNatale
>
> Blog: http://talklikeaduck.denhaven2.com/
> Github: http://github.com/rubyredrick
> Twitter: @RickDeNatale
> WWR: http://www.workingwithrails.com/person/9021-rick-denatale
> LinkedIn: http://www.linkedin.com/in/rickdenatale
>