-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
@Before is not invoked when multiple tags are passed in the runner file #2776
Comments
@Prakash-QA, tags expect a logical operator between them. For example, if you pass "@Set1 or @SET2", it will work as expected. The "beforeall" will be executed first, and "before" will be executed before each scenario. However, I noticed that if we use a comma (",") between two tags like you did, it doesn't give the expected error. Let's proceed with running it, and I will look into it further. |
Thank you @shivam-sehgal . When I use conditional operator it works. |
Hello, @mpkorstanje has submitted a pull request PR to address this issue. This PR aims to prevent others from encountering the same problem. I kindly request a review of the changes to ensure their effectiveness and potential integration into the project. Your assistance and feedback would be greatly appreciated. |
Thank you for the update |
I'm passing multiple tags in my runner file
tags = "@set1,@set2"
My Runner file looks like this
I have my Hooks class like this
My cucumber version - 7.12.1
When I execute the runner, I get @BeforeAll methods executed and then control goes to @afterall method and @before method was not executed. When I pass only one tag in the runner file then it all work fine.
The text was updated successfully, but these errors were encountered: