Reputation: 301
I have created one feature with three scenarios, each scenario has a tag. Feature: Three scenarios
@Scenario1 Scenario ... Given .... When ... Then ...
@Scenario2 Scenario ... Given .... When ... Then ...
@Scenario3 Scenario ... Given .... When ... Then ...
When I run just with a tag, it is working. command contains: ... --tags @Scenario1
When I tried with two tags, it is not working. The following commands I tried:
Upvotes: 2
Views: 7961
Reputation: 1191
Try --tags "@Scenario1 or @Scenario2"
. See Tag Expressions for details.
You can also run scenarios by line: cucumber features/hello.feature:34:48
Upvotes: 5