Ask a Question

Tag not working in cucumber 7

AlexBravo95
Regular Visitor

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>

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: