如何在不删除功能的情况下禁用specflow(Gherkin)中的功能?

问题描述:

我有一些SpecFlow功能(使用Gherkin语法),我想暂时禁用该功能,以防止其运行测试。

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

有一个属性I可以标记功能,这样做吗?我猜,与Cucumber一起工作的东西也可能与SpecFlow一起使用。

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.

忽略:

@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'