microsoft / playwright-java

Java version of the Playwright testing and automation library
https://playwright.dev/java/
Apache License 2.0
1.12k stars 204 forks source link

[Question] - Unable to run cucumber feature files parallelly with Playwright+Java #1081

Closed dggadhia closed 1 year ago

dggadhia commented 1 year ago

I tried all possible ways

  1. Using maven surefire plugin ,
  2. using maven failsafe plugin
  3. using cucumber jvm plugin. in all cases it runs feature files sequentially only. Am I missing something here?... I want to run feature files parallel

Below is my POM.XML file you might see configuration is commented but I tried all those combinations.

POM.zip

yury-s commented 1 year ago

This question should be addressed to the aforementioned plugin communities as playwright doesn't control the parallel execution. You can have a looks at our surfire plugin config for inspiration, we run tests from different classes in parallel: https://github.com/microsoft/playwright-java/blob/ae54a7da554b9328c16d6bcb17db93c5e57342a6/pom.xml#L137-L143