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

Test skipped due to failure in previous step #123

Closed
ylavoie opened this issue Jun 28, 2017 · 8 comments
Closed

Test skipped due to failure in previous step #123

ylavoie opened this issue Jun 28, 2017 · 8 comments

Comments

@ylavoie
Copy link
Contributor

ylavoie commented Jun 28, 2017

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.

@pjlsergeant
Copy link
Collaborator

pjlsergeant commented Jun 28, 2017 via email

@ylavoie
Copy link
Contributor Author

ylavoie commented Jun 30, 2017

Coming soon, see cucumber/common#79

@pjlsergeant
Copy link
Collaborator

pjlsergeant commented Jul 1, 2017 via email

@ylavoie
Copy link
Contributor Author

ylavoie commented Jul 2, 2017

I do like both. So yes, I'd like to read your ideas about that.
My original goal, and I've seen it shared in many cucumber forums, was to consider examples in outlines as independent scenarios, so the failure of one shouldn't have any impact on others. I will certainly add my voice to the chorus there too.
Soft-fail steps add another nice twist that could give the same effect for outlines and examples.

@ehuelsmann
Copy link
Collaborator

It's actually not coming soon. The referenced issue has been closed without resolution.

@ehuelsmann
Copy link
Collaborator

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.

@ehuelsmann
Copy link
Collaborator

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.

@ehuelsmann
Copy link
Collaborator

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.

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

No branches or pull requests

3 participants