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

Need to give order to @AfterScenario. Is it possible? #2981

Open
lRaulMN7 opened this issue Nov 28, 2022 · 2 comments
Open

Need to give order to @AfterScenario. Is it possible? #2981

lRaulMN7 opened this issue Nov 28, 2022 · 2 comments
Labels

Comments

@lRaulMN7
Copy link

Hello! I had some @AfterScenario hooks that I need to give some order (to delete properly in cascade), but there is no order parameter I can pass. Am I doing something work? I had to use the cucumber's @after to solve this.

Thanks in advance

@wakaleo
Copy link
Member

wakaleo commented Nov 28, 2022

I don't believe so - you would need to ask the Cucumber team.

@lRaulMN7
Copy link
Author

Oh ok! Do you think it could be a good feature to add @wakaleo ?

To be able to do something like
@AfterScenario(order=20) or @BeforeExample(order=2)

I know requests have low priority, but I might do a PR if you think it can add some value!

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

No branches or pull requests

2 participants