可能重复:
How do you get cucumber/guard to filter on tags like @wip?
我有以下情况:
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是如何工作的(或者更好:为什么它按照它的工作方式工作)。