0

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).

kaya3
  • 47,440
  • 4
  • 68
  • 97
Joshua Muheim
  • 12,617
  • 9
  • 76
  • 152
  • 1
    If you want to ask another (though very similar) question, specify it either below your question or (better) ask new question. Don't change your question because answers that you have already received become irrelevant after it. – Andrei Botalov Jul 11 '12 at 13:35
  • I don't understand "But when saving any other feature (that also makes this feature run), the @wip tag seems to be ignored.". Could you explain? – Andrei Botalov Jul 11 '12 at 18:11
  • I have guard running, which automatically runs all the features when the feature I currently work on passes. – Joshua Muheim Jul 11 '12 at 18:22

1 Answers1

1

You can run all scenarios without this tag using:

cucumber --tags ~@ignore
Andrei Botalov
  • 20,686
  • 11
  • 89
  • 123