recently I've postet something about running the tests in parallel, which was utterly, totally wrong.
This should be correct.
- Write one java class anotiated @RunWith(CucumberWithSerenity.class) per featurefile. Use @CucumberOptions(features=...) to define the path to the feature file.
- Start the tests with mvn clean verify
- In the pom file use
<parallel>classes</parallel> in the configuration area for maven-failsave-plugin
Your tests will run in parallel, whether you run against a Selenium GRID or not
I've noticed the following problems:
- If you run maven with the -Dcucumber.options="--tags @ATag" settup, tests will not run in parallel
<threadCount>4</threadCount>More info you can find here http://maven.apache.org/surefire/maven-failsafe-plugin/examples/fork-options-and-parallel-execution.html
<forkCount>4</forkCount>