Cucumber: @wip flag behaves strangely with Guard

1k Views Asked by At

Possible Duplicate:
How do you get cucumber/guard to filter on tags like @wip?

I have the following 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 list of projects

  Scenario: I go to the projects2
    When  I go to the projects
    Then  I should see a list of projects

When running it (by saving it so it is invoked by Guard), only the 2nd one is executed, as expected. But when saving any other feature (that also makes this feature run), the @wip tag seems to be ignored. Is this normal behavior?

Update

By using --tags ~@ignore I can disable as many features as I like. I'm still not really getting how @wip works (or better: why it works the way it works).

1

There are 1 best solutions below

1
On

You can run all scenarios without this tag using:

cucumber --tags ~@ignore