我有一个功能文件,如下所示:
Feature: This is a sample feature file
@tag1
Scenario: This is a scenario one.
Given scenario one
When @tag1
Then execute @tag1
@tag2
Scenario: This is a scenario two.
Given scenario two
When @tag2
Then execute @tag2
@tag3
Scenario: This is a scenario three.
Given scenario three
When @tag3
Then execute @tag3
@tag2 @tag3
Scenario: This is a scenario two and three.
Given scenario two and three
When @tag2 @tag3
Then execute @tag2 @tag3
现在我只需要运行@tag1
而@tag2 @tag3
不是运行单个@tag2
和单个@tag3
标签
那么我怎么能提到@CucumberOptions
只有@tag1
和@tag2 @tag3
场景将运行的标签,而其他的将不会运行。