I have the following scenario definition in a
sample.feature file, with scenario with two sub-cases using the
@ninja Scenario Outline: this is a sample scenario Given ... And ... And .. When ... Then ... Examples: | param1 | param2 | param3 | | 10 | 4 | 9 | | 20 | 8 | 23 |
I can use the tag
ninja to execute only that scenario, among all the others defined in the
sample.feature file, as follows:
$ behave sample.feature --tags=ninja ... Scenario Outline: this is a sample scenario -- @1.1 ... Scenario Outline: this is a sample scenario -- @1.2 ...
Note that behave "marks" each subcase execution, i.e.
@1.2 in execution log.
I'd like to know if I can be even more "sharp" and use behave to execute only one (or a subset) of subcases of a given tag. I have tried the following, with no luck (i.e. both subcases are executes, not only the second one):
$ behave sample.feature --tags=ninja,1.2
Is that possible? Any help on how doing it, please?