views:

214

answers:

1

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.

+4  A: 

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'
jbandi
Cool, is there anywhere I can find a list of attributes?
Si Keep
We are talking about tags here. @ignore is the only "predefined" tag. Else tags can be freely defined to control the Before-/After-Hooks and to selectively run features.
jbandi