Sim*_*eep 63 cucumber specflow gherkin
我有一些SpecFlow功能(使用Gherkin语法),我想暂时禁用该功能,以防止其测试运行?
是否有一个属性可以标记该功能来执行此操作?我猜测适用于Cucumber的东西也可能适用于SpecFlow.
jba*_*ndi 96
您可以使用@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'
Xen*_*ena 11
在最新版本的Specflow中,您现在还必须提供标记的原因,如下所示:
@ignore("reason for ignoring")
编辑:由于某种原因它打破了空格但这有效:
@ignore("reason")