如何在不删除功能的情况下禁用specflow(Gherkin)中的功能? [英] How do I disable a feature in specflow (Gherkin) without deleting the feature?

查看:237
本文介绍了如何在不删除功能的情况下禁用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'

这篇关于如何在不删除功能的情况下禁用specflow(Gherkin)中的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆