在没有Visual Studio的情况下运行SpecFlow测试 [英] Run SpecFlow tests without Visual Studio

查看:122
本文介绍了在没有Visual Studio的情况下运行SpecFlow测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望质量检查小组能够运行SpecFlow测试. 我希望他们能够更改值并添加更多方案. 这些附加方案将具有匹配的步骤定义,因此只需修改功能即可.

I would like out QA team to be able to run SpecFlow tests. I would like them to be able to change values and append more scenarios. These appended scenarios will have matching step definitions, so they only need to modify the features.

质量检查小组无法访问Visual Studio.

The QA team does not have access to Visual Studio.

是否可以在不使用Visual Studio的情况下实现这一目标?

Is it possible to achieve this without using Visual Studio?

我们目前正在使用MS Test,但如果有帮助,我们愿意使用NUnit.

We are currently using MS Test but we are willing to use NUnit if that will help.

推荐答案

是的-有一种简单"的方法.

Yes - there is a 'simple' way.

由于SpecFlow仅从.feature文件中的文本生成测试,因此您可以使用所选工具的命令行运行程序.

Since SpecFlow merely generates tests from the text in the .feature files you can use the command line runner of the tool of your choice.

SpecFlow还带有命令行版本SpecFlow.exe,您可以将它们链接在一起,不仅可以生成和运行测试,还可以生成不错的测试报告. Visual Studio之外的所有内容.

SpecFlow also comes with a command line version SpecFlow.exe and you can chain them together to not only generate and run the tests but also produce a nice test report. Everything outside Visual Studio.

我已经在这里写过这本书; http://www.marcusoft.net/2010/12/specflowexe-and-mstest.html 中的简单分步文章.

I've written about this here; http://www.marcusoft.net/2010/12/specflowexe-and-mstest.html in an easy step-by-step article.

希望这很有用.

这篇关于在没有Visual Studio的情况下运行SpecFlow测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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