3

以下のような機能ファイルがあります。

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

4

1 に答える 1

0

2 と 3 の組み合わせを表す新しいタグを作成し@tag2and3ます。

于 2016-01-13T11:57:19.770 に答える