Cucumber-java-maven: Is it possible to add a tag to the ones defined in the test class?
问题 Say I have a cucumber feature file having tags @Crucial-tests , @Smoke-subset1 and @Smoke-subset2 for the scenarios. As I understand, I can run just @Smoke-subset1 during maven execution as(say) mvn clean install -Pcucumber-test -Dcucumber.options="--tags @Smoke-subset1" Now I modify my runner class to have a tag which I want to run by default everytime as @CucumberOptions(.. tags = {"@Crucial-tests"}..) If I run the same maven command again, then the tags specified in the runner class gets