How do I disable a feature in specflow (Gherkin) without deleting the feature?

Simon Keep picture Simon Keep · Jun 3, 2010 · Viewed 38.4k times · Source

I have some SpecFlow features (using the Gherkin syntax) and I would like to temporarily disable the feature to prevent its tests from running?

Is there an attribute I can mark the feature with to do this? I'm guessing that something that works with Cucumber might also work with SpecFlow.

Answer

jbandi picture jbandi · Jun 3, 2010

You can mark the feature with the tag @ignore:

@ignore @web
Scenario: Title should be matched
When I perform a simple search on 'Domain'
Then the book list should exactly contain book 'Domain Driven Design'