cucumber / cucumber-jvm

Cucumber for the JVM
https://cucumber.io
MIT License
2.7k stars 2.02k forks source link

Parallel Tests, define # of threads #1500

Closed mpaquettePax8 closed 5 years ago

mpaquettePax8 commented 5 years ago

Summary

Apologies if this has been discussed elsewhere, couldn't find any documentation on this! Would like the ability to not only specify parallel =true in the cucumber options, but also to specify exactly how many feature or scenarios I would like to be executed in parallel.

Possible Solution

I believe this could be achieved by using Selenium grid and limiting browser instances per node. BUT this would be super awesome to be able to specify in Cucumber.

Your Environment

mpkorstanje commented 5 years ago

There is no parallel option in CucumberOptions. So I am assuming you are using TestNG.

https://github.com/cucumber/cucumber-jvm/issues/1496

In this scenario Cucumber acts like a regular TestNG test. As such you should consult TestNGs documentation on parallel execution.

you may find these useful. Leads me to think you have to use dataproviderthreadcount.

https://stackoverflow.com/questions/31521466/testng-parallel-execution-with-dataprovider https://stackoverflow.com/questions/31521466/testng-parallel-execution-with-dataprovider

And that should probebly be put into the readme.

mpaquettePax8 commented 5 years ago

Ah yes my mistake! We are using TestNG for parallel execution by overriding the DataProvider. Thank you so much!

mpkorstanje commented 5 years ago

No worries. Would you mind helping out with a bit of documentation? This should be added to the readme of the TestNG module.

mpkorstanje commented 5 years ago

Cheers!

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.