serenity-bdd / serenity-cucumber-starter

A skeleton project for Serenity BDD and Cucumber JVM
Apache License 2.0
180 stars 285 forks source link

Mismatch between the number of scenarios when running parallel tests #56

Closed KurumiXenar closed 2 years ago

KurumiXenar commented 3 years ago

Hi, I'm using intellij with maven on this personal test project. When I try to run the tests in parallel with a batch count of 2 and applying a tag filter, serenity tells me this: There is a mismatch between the number of scenarios included in this test run ({}) and the expected number of scenarios loaded ({}). This suggests that the scenario filtering is not working correctly or feature file(s) of an unexpected structure are being run"

I have tried using the mvn clean verify with flags method: mvn clean verify -Dmode="parallel" -Dserenity.batch.count=2 -Dserenity.batch.number=2 -Dcucumber.filter.tags=@1234

And I have tried using the run/debug configurator to execute the runner directly as well: -ea -Dmode="parallel" -Dserenity.batch.count=2 -Dserenity.batch.number=2 -Dcucumber.filter.tags=@test1234

I have tried changing the batch number and batch count to no avail as well. Is there a possible fix for this? Thanks you.