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

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

是否有一个属性可以用来标记功能?我猜测适用于 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标签来标记特征:

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'

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

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