Open codejco opened 2 years ago
I'm not sure the batch feature works with tags (it is a community-supported feature). What problem are you trying to solve - are you trying to run tests in parallel on a single machine?
I am currently comparing which parallelization is able to finish tests and found that the batching is able to use more forks compared to the standard one, thus finishing the tests faster. Eventually, we want to run our tests in Jenkins but are also looking for the option to only run specific tags which led me to checking if this works.
Hi all, I would like to ask if running serenity batches for a specific set of test with tags is possible.
I've tried to follow the link below: https://serenity-bdd.github.io/theserenitybook/latest/serenity-parallel-batches.html
And I am able to run my whole suite and get it parallelized in batch but when I add the tag on the mvn command, I get 0 tests run.
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in cucumber.CucumberTestSuite8 [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in cucumber.CucumberTestSuite2
For context, I created 8 CucumberTestSuite.java to emulate the SlicedTestRunners on the link.
Sample command: mvn clean verify -Dserenity.batch.count=1 -Dserenity.batch.number=1 -Dcucumber.filter.tags=@test -P useTheForks
Below is the POM I am using