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

Create an option to --bail stop a suite on first failure/error #19

Open
filfreire opened this issue Nov 25, 2020 · 0 comments
Open

Create an option to --bail stop a suite on first failure/error #19

filfreire opened this issue Nov 25, 2020 · 0 comments

Comments

@filfreire
Copy link
Contributor

Summary: creating a way for a TestSuite to halt completely on first failure/error encountered.

As of now, (and probably by design) if a TestSuite test step fails, I don't seem to have a way to tell questions-three to immediately stop the execution and run any suite teardown related steps right after. Instead, all the follow-up test steps keep running. If some context from a previous step is required for the next step, say, if the testsuite is for a composed/complex scenario of multiple steps, the entire test run will print out followup errors, "hiding"/obscuring the initial failure.

Is there an easy way to do this with questions-three as is, or any idea of a viable way to implement it as an option part of questions-three?

Example of this implemented elsewhere: --bail CLI option in newman that tells the framework to stop the check run on encountering the first check script error.

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

1 participant