Run all scenarios
mvn clean test
Run specific feature file
mvn clean test -Dcucumber.options="src/test/resources/feature/_file_name.feature"
Run specific scenario within feature file
mvn clean test -Dcucumber.options="src/test/resources/feature/_file_name.feature:7"
:7 - line# of the desired scenarios
Run specific scenarios within feature file
mvn clean test -Dcucumber.options="src/test/resources/feature/_file_name.feature:7:20"
Run scenario by tag
mvn clean test -Dcucumber.options="--tags @test"
Exclude specific tags from execution
mvn clean test -Dcucumber.options="--tags @reports, -@tags ~@smoke"
Available environment to execute against – Dev, Test
mvn clean test –Dcucumber.options=”--tags @test” –P test
mvn clean test –Dcucumber.options=”--tags @test” –P dev
No comments:
Post a Comment