-
Notifications
You must be signed in to change notification settings - Fork 43
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
Test skipped due to failure in previous step #123
Comments
I don't think that's accurate - specifically I don't think that's how
Cucumber works
…On Wed, 28 Jun 2017 at 18:09, Yves Lavoie ***@***.***> wrote:
In a feature test with examples, failure in one step should only skip
remaining steps of the current example.
Currently, a failure in an example skip all other examples.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/pjlsergeant/test-bdd-cucumber-perl/issues/123>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AABgslR4GEx-cgq9Ibdo-582c7CKyUhVks5sIojVgaJpZM4OIQo3>
.
|
Coming soon, see cucumber/common#79 |
Heh, this will invalidate most of my MSc dissertation :’)
They are proposing something slightly different there, which I like, which
is the idea that a step can be marked as being allowed to soft-fail. If you
want to implement that, I’ll accept it with open arms. I have a few ideas
on how to do that nicely if that’s something you want to do.
…-P
On Fri, Jun 30, 2017 at 9:23 PM, Yves Lavoie ***@***.***> wrote:
Coming soon, see cucumber/common#79
<cucumber/common#79>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/pjlsergeant/test-bdd-cucumber-perl/issues/123#issuecomment-312364694>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABgskpPtcO0DFA6VjT2M3xDlI9UWlFyks5sJVkogaJpZM4OIQo3>
.
|
I do like both. So yes, I'd like to read your ideas about that. |
It's actually not coming soon. The referenced issue has been closed without resolution. |
I think that if we switch to cucumber/cucumber's gherkin-perl (aka Gherkin module on CPAN) after cucumber/common#694 has been merged, this problem solves itself: In the pickle output each scenario (not scenario outline) is its own testing unit, which means that failure of one "example" won't mean automatic failure of all examples. |
The conclusion on the referred thread is that the community desperately wants it (the soft assertions), but nobody has enough skills to implement it for all backends. So, the issue ended up being closed. |
Just verified in the Cucumber committers Slack channel: each expanded scenario should be treated as a completely separate scenario. The scenario outline is only syntactic sugar to the definition of multiple scenarios. That means that - as I understand @ylavoie's request - we should implement as he requested. |
In a feature test with examples, failure in one step should only skip remaining steps of the current example.
Currently, a failure in an example skip all other examples.
The text was updated successfully, but these errors were encountered: