Forum Discussion

AlexBravo95's avatar
AlexBravo95
Regular Visitor
2 years ago

Tag not working in cucumber 7

Dear I am having a problem with version 7 of cucumber.

I want to execute several scenarios by Tag but the and does not work for me but the or does.

 

i am using this sequence it works:

mvn clean test -Dcucumber.filter.tags="@test1 or test2"

 

this doesn't work:

mvn clean test -Dcucumber.filter.tags="@test1 and test2"

 

I don't understand why with or if it is executed and not with and

 

<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>7.3.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>7.3.3</version>
<scope>test</scope>
</dependency>

No RepliesBe the first to reply