1

I am looking for a way to keep a specific feature test within my codebase to use later but I don't want cucumber to run it for now because it is slowing down my running of the tests. Is there a way that i can do this?

Lilp
  • 961
  • 1
  • 11
  • 31
  • Have you checked out [RSpec](http://stackoverflow.com/questions/8306760/cucumber-vs-rspec)? – But I'm Not A Wrapper Class May 07 '15 at 15:40
  • Yes I am very familiar with rspec. I am just looking for an alternative way to keep my test pending. – Lilp May 07 '15 at 15:43
  • possible duplicate of [How do you mark a Cucumber Scenario as Pending](http://stackoverflow.com/questions/3064078/how-do-you-mark-a-cucumber-scenario-as-pending) – Mario May 07 '15 at 16:10

2 Answers2

4

You can add the @wip (work in progress) tag before the scenario you want to skip.

Feature: Doing stuff
  @wip
  Scenario: Some Sweet Tests
    Given... 
Jared
  • 1,154
  • 2
  • 17
  • 32
1

You can tag the test with something like @slow and then omit it when you execute cucumber. That would look something like this:

cucumber --tags ~@slow

Later, when perhaps you want to execute only that test, you can do:

cucumber --tags @slow
Johnson
  • 1,510
  • 8
  • 15