Profiles dontUseTheForks and useTheForks added to maven configuration to allow forked/unforked execution using on smoke-tests project as a working example.
Tags can be automatically be added to reports showing batch/fork allocation by adding a hook as follows:
@Before
public void before() {
SerenityTags.create().tagScenarioWithBatchingInfo();
}
To run smoke tests without forking: mvn clean verify -P dontUseTheForks
To run smoke tests with forking based on ScenarioLineCountStatistics: mvn clean verify -Dserenity.batch.count=1 -Dserenity.batch.number=1 -P useTheForks
To run smoke tests with forking based on MultiRunTestStatistics: mvn clean verify -Dserenity.batch.count=1 -Dserenity.batch.number=1 -Dserenity.test.statistics.dir=/statistics -P useTheForks
dontUseTheForks
anduseTheForks
added to maven configuration to allow forked/unforked execution using on smoke-tests project as a working example.mvn clean verify -P dontUseTheForks
ScenarioLineCountStatistics
:mvn clean verify -Dserenity.batch.count=1 -Dserenity.batch.number=1 -P useTheForks
MultiRunTestStatistics
:mvn clean verify -Dserenity.batch.count=1 -Dserenity.batch.number=1 -Dserenity.test.statistics.dir=/statistics -P useTheForks