Cucumber:@wip flag与守卫行为异常
可能重复:Cucumber:@wip flag与守卫行为异常,cucumber,ignore,scenarios,Cucumber,Ignore,Scenarios,可能重复: 我有以下几种情况: Feature: List projects In order to manage projects As a user I want to see a list of them Background: Given I am logged in @wip Scenario: I go to the projects When I go to the projects Then I should see a
我有以下几种情况:
Feature: List projects
In order to manage projects
As a user
I want to see a list of them
Background:
Given I am logged in
@wip
Scenario: I go to the projects
When I go to the projects
Then I should see a list of projects
Scenario: I go to the projects2
When I go to the projects
Then I should see a list of projects
当运行它时(通过保存它以便由Guard调用),只执行第二个,如预期的那样。但是,当保存任何其他功能时(这也会使该功能运行),似乎会忽略@wip标记。这是正常的行为吗
更新
通过使用
--tags~@ignore
我可以禁用任意数量的功能。我还没有真正了解@wip是如何工作的(或者更好:为什么它是这样工作的)。您可以使用以下工具运行所有场景:
如果你想问另一个(尽管非常相似)问题,请在你的问题下方指定它,或者(最好)问新问题。不要更改您的问题,因为您已经收到的答案在之后变得无关紧要。我不理解“但是当保存任何其他功能(这也使此功能运行)时,@wip标记似乎被忽略。”。你能解释一下吗?我有guard running,当我目前使用的功能通过时,它会自动运行所有功能。请注意,在发布问题后,这个答案是正确的,但后来问题被修改了。
cucumber --tags ~@ignore