-
-
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
How to run scenarios sequentially in the parallel mode? #2565
Comments
You can not. Scenarios are intended to be executed independently from each other. It was a limitation of JUnit 4 that only features were run in parallel. Depending on what you are testing, you could turn all scenarios in a feature file into a single scenario. However you should consider rewriting your scenarios such that they do not depend on the actions in previous scenarios. Typically this means writing scenarios like:
To implement |
OK, thanks, I guess we will have to live with that :-(. |
Sounds like exclusive resources are the right solution to your problem. Tags in feature files are inherited. So if you tag the |
Owh btw, it would help if you lead with the problem you are trying to solve. The issue template specifically asks for the two items you mentioned in your second post:
|
Hi,
I've enabled Cucumber parallel running using Maven Surefire plugin. It works fine, but I wonder how I can run features in parallel, but scenarios within a feature sequentially. Do I miss something?
Note that I use this config:
Thanks,
Martin
The text was updated successfully, but these errors were encountered: