Multiple tags in the cucumber doesnt run the scenarios.
I have two different tags, tagged to two different scenarios under the same feature file. I try to run both the scenarios that are tagged, using the cucumber tags command
cucumber --tags @billing --tags @important
When I run this, cucumber doesn't recognize the scenarios, it provides the output like
0 scenarios
0 steps
0m0.000s
But when I run the tags individually, like cucumber --t @billing
the cucumber is able to recognize and runs the scenario. Any idea why?
Any help is appreciated.
Simply if you define like above ( cucumber --tags @billing --tags @important
) , there should be a scenario having both @billing
and @important
tags.
if you are looking for cucumber to pick up when matching any of the tags, use as below.
cucumber --tags @billing , @important
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.