Why run cucumber tests with tags gives error message
I have a Maven project with JUnit 4 and Cucumber tests.
I want to run one test with particular tag.
When I run command in Terminal
mvn test -Dcucumber.filter.tags="@Smoke"
or
mvn test -Dcucumber.options="--tags @Smoke"
I get errror message:
[ERROR] Unknown lifecycle phase ".options=--tags @Smoke". You must specify a valid lifecycle phase or a goal in the format : or
[]:. Availa
ble lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources,...