[cucumber-jvm] Is @ignore ignored?

2,034 views
Skip to first unread message

Christian

unread,
Sep 25, 2014, 1:10:02 PM9/25/14
to cu...@googlegroups.com
Hi all,

The cucumber docs specify that any scenario tagged with @ignore should be ignored: https://github.com/cucumber/cucumber/wiki/Tags#special-tags
However, if I try that, cucumber-jvm still runs them.

Why? :)

Or is this one of these odd cases where cucumber-jvm behaves differently?

Brgrds,

Christian

Tim Walker

unread,
Sep 25, 2014, 1:39:50 PM9/25/14
to cu...@googlegroups.com
Take a look at http://stackoverflow.com/questions/18893085/ignoring-features-in-cucumber-jvm

I typically just tag them with @wip and have my running options use tags={"~@wip"}, or similar. The other way is to mark the known good ones with @ok and add that to the runner. 

Tim

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arpan Mandal

unread,
Mar 5, 2015, 12:04:22 PM3/5/15
to cu...@googlegroups.com
Hi,
     My Cukes runner looks like this:
@RunWith(Cucumber.class)
@CucumberOptions(
        plugin={"pretty",
        tags={"~@ignore","@new_test"},
        features="src/cucumberNL/"
        )

I want to run just 1 test out of 6. So I have added 5 @ignore before 5 tests and 1 @new_test before the test I want to run. Still it is executing all 6 tests.
Then I just had all @ignore still it runs all 6.

Sample:
@ignore
  Scenario Outline: Fourth
    Given I open NL Product Page
    When I click on <Name> Link
    Then The <Subsequent> link Page opens

    Examples:
      | Name         | Subsequent   |
      | "Appliances" | "Appliances" |
      | "Services"   | "Services"   |

Any help will be highly appreciated.

-Arpan
Reply all
Reply to author
Forward
0 new messages