'run cucumber multiple tags in node.js
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:
- ... --tags={"@Scenario1","@Scenario2"}
- ... --tags={'@Scenario1','@Scenario2'}
- ... --tags={@Scenario1,@Scenario2}
- ... --tags={"@Scenario1,@Scenario2"}
- ... --tags={"@Scenario1 and @Scenario2"}
- ... --tags "@Scenario1 and @Scenario2"
- ... --tags @Scenario1 --tags @Scenario2"
Solution 1:[1]
try --tags @Scenario1 , @Scenario2
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Rohit Totlani |
