How to skip two tags in single
I have written a few cucumber features and also tagged some scenarios with @wip and @test. I am running cucumber features and want to skip the scenarios which are tagged with @wip and @test so I used the below mentioned line to skip the same.
1. --format pretty --quiet --color --tags ~@wip,~@test
But at the time of executing scenarios, I found all the scenarios tagged with @wip and @test are still getting executed. Then I changed the above line as:
2. --format pretty --quiet --color --tags ~@wip, --tags ~@test
Then it is skipping the scenarios tagged with @wip and @test.
So, I want to know is it possible to skip two or multiple tags in single --tag ie mentioned in point 1?
Your solution is 1.--format pretty --quiet --color --tags ~@wip,~@test
The comma means that the conditions are OR-ed. It says: all scenarios that are not @wip OR are not @test So scenarios with only @wip are executed
The solution is to use quotes, than the conditions are AND-ed
1.--format pretty --quiet --color --tags "~@wip","~@test"
链接地址: http://www.djcxy.com/p/38782.html上一篇: 使用格式化选项重新运行失败的黄瓜场景
下一篇: 如何跳过单个标签