1

I have a bunch of feature files(around 15) where each feature file has a thread that needs to sleep for atleast 3 mins (for some complex background app to execute some functions). I need a way to execute all of them in parallel.

I have a simple CucumberRunnerTestCLass.

@RunWith(Cucumber.class)
@CucumberOptions(features = "src/test/java/com/sample/demo/features",glue{""}, plugin = {"pretty","html:target/cucumber"}, tags = {"@integrationTesting"})
public class JUnitRunnerTest {
}

Any help is very appreciated. Thanks

maddy
  • 23
  • 1
  • 7
  • Possible duplicate of [How do I run my cucumber-jvm features in parallel? (with maven using cucumber-jvm-parallel-plugin)](https://stackoverflow.com/questions/40539248/how-do-i-run-my-cucumber-jvm-features-in-parallel-with-maven-using-cucumber-jv) – Marit Aug 01 '18 at 11:42

1 Answers1

0

Provide threads like:

@RunWith(Cucumber.class)
@CucumberOptions(threads=5,features = "src/test/java/com/sample/demo/features",glue{""}, plugin = {"pretty","html:target/cucumber"}, tags = {"@integrationTesting"})
public class JUnitRunnerTest {
}
4b0
  • 21,981
  • 30
  • 95
  • 142