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

Add support for skipping a step from inside the step #295

Closed
eerkunt opened this issue Jan 14, 2019 · 4 comments
Closed

Add support for skipping a step from inside the step #295

eerkunt opened this issue Jan 14, 2019 · 4 comments

Comments

@eerkunt
Copy link
Contributor

eerkunt commented Jan 14, 2019

I dig up the documentation and the code itself and found out whenever

step.state = Step.State.SKIPPED

is set inside of any Step, due to

if self.state is not Step.State.PENDING:
, Step.State.SKIPPED state is set as Step.State.PASSED on the next line and it is not possible to skip a step manually.

There might be some cases where a step (and the following steps) should be skipped, but not failed.

Is there a plan to add support for manually skipping any step ?

@eerkunt
Copy link
Contributor Author

eerkunt commented Jan 14, 2019

Created a PR, but not sure if there is a better way to skip a step (or scenario ?) inside a step.

@eerkunt
Copy link
Contributor Author

eerkunt commented Jan 16, 2019

Thanks!

@eerkunt eerkunt closed this as completed Jan 16, 2019
@eerkunt eerkunt reopened this Jan 17, 2019
@eerkunt
Copy link
Contributor Author

eerkunt commented Jan 17, 2019

Hello @timofurrer,

Could you please release the new version ?

By the way, the released radish-bdd version in PyPI is 0.9.1, not even 0.9.2.

@timofurrer
Copy link
Member

Didn't have time yesterday, should be released now. Cheers 🎉

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

No branches or pull requests

2 participants