Skip to content

Stop execution of scenario if one step failed/inconclusive (#360)#1198

Merged
nohwnd merged 1 commit intopester:masterfrom
gnuechtel:StopExecutionOnFailedSteps
Jan 5, 2019
Merged

Stop execution of scenario if one step failed/inconclusive (#360)#1198
nohwnd merged 1 commit intopester:masterfrom
gnuechtel:StopExecutionOnFailedSteps

Conversation

@gnuechtel
Copy link
Copy Markdown
Contributor

As described in #360 it does not make any sense to execute the next steps of a scenario if the current step fails or is inconclusive.

(A step is a Given/When/Then clause.)
(Also with the current pull request Pester should behave more like Cucumber.)

- If a step (given/when/then) fails, next steps will be skipped for one scenario
- If a step is inconclusive, next steps will also be skipped
@nohwnd nohwnd merged commit d978063 into pester:master Jan 5, 2019
@nohwnd
Copy link
Copy Markdown
Member

nohwnd commented Jan 5, 2019

Fix #360

@gnuechtel
Copy link
Copy Markdown
Contributor Author

very fast merge 😮
thank you

@nathan-given-health-catalyst
Copy link
Copy Markdown

nathan-given-health-catalyst commented Jan 15, 2019

@cgnuechtel - is this available now? How do I use it? (I'm just using Invoke-Pester with many, many tests, and I want Pester to stop after the first failure)

@gnuechtel
Copy link
Copy Markdown
Contributor Author

@nathan-given-health-catalyst my fix was for Gherkin execution, not for PSpec. But I guess for PSpec it was fixed earlier.

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

Successfully merging this pull request may close these issues.

3 participants