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

Enable +fail-fast per example to support preconditions #42

Closed
eldipa opened this issue Aug 24, 2018 · 1 comment
Closed

Enable +fail-fast per example to support preconditions #42

eldipa opened this issue Aug 24, 2018 · 1 comment
Labels
enhancement something nice to have but it is not neither critical nor urgent
Milestone

Comments

@eldipa
Copy link
Collaborator

eldipa commented Aug 24, 2018

The +fail-fast option in an example is ignored. If it wasn't and if the example fails, it would trigger a fail fast escape, skipping the rest of the tests even if the user didn't call to byexample with --ff from the command line.

This could enable us to perform preconditions and skip all the examples if something is not right at the begin.

Like:

>>> is_resource_available     # byexample: +fail-fast
True

>>> use_resource
<...>

>>> use_more_of_resource
<...>
@eldipa eldipa added the enhancement something nice to have but it is not neither critical nor urgent label Aug 24, 2018
@eldipa eldipa added this to the 7.2.0 milestone Aug 24, 2018
@eldipa
Copy link
Collaborator Author

eldipa commented Sep 3, 2018

Done in c17f433

@eldipa eldipa closed this as completed Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement something nice to have but it is not neither critical nor urgent
Projects
None yet
Development

No branches or pull requests

1 participant