-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
Parallel execution is not working with cucumber 6 #2694
Comments
The approach described in https://cucumber.io/docs/guides/parallel-execution/#junit-4 works. However you can't mix Serenity versions like that: make sure the Serenity dependencies all have the same version. |
Does it mean that I need downgrade all the serenity version to cucumber6 version? Because max version for cucumber 6 is 2.6.0, but serenity 3.1.2! Thank you! |
Just use Cucumber 7. |
Thank you for your suggestions. But still missing something. I try to run the same tag in different features, but still open one browser at a time. I use command: mvn clean verify And in runner put that tag! Thank you! `
` |
Thank you, just found the solution and now parallel execution is working. If somebody need this, please check working pom.xml with serenity cucumber 7 and junit 4. Working pom.xml:
` |
I have added this POM But i am having issues like " [INFO] --- maven-failsafe-plugin:3.0.0-M5:integration-test (default) @ serenity-test-automation --- I have also tried to junit5, I am having the same error "No tests to run". looks like, It couldn't find any tests to run. Not sure why. How to resolve this? |
@SaikatDEV |
This approach works and pics up execution- but when i set the thread count to 2 it is picking up 8 threads at once- After some scenarios its is picking up 2 threads and slowly execution happens in only one thread is there a way to control the threads- please suggest. |
Cucumber does not currently support limiting the maximum number of threads, though there are properties to do so, they are not guaranteed to work (see https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-junit-platform-engine#parallel-execution). |
okay- figured out the thread count is currently equal to number of feature files, i will try and see- Thanks much! |
Hi, please help to figure out how to run serenity with cucumber 6 in parallel. Try different ways and try to follow this link SERENITY CUCUMBER 6 PARALLEL, but still no result. Thank you for any suggestions!
Here is my pom.xml file:
`
4.0.0
`
The text was updated successfully, but these errors were encountered: