Run SpecFlow tests without Visual Studio

戏子无情 提交于 2019-12-10 02:30:43

问题


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.

The QA team does not have access to Visual Studio.

Is it possible to achieve this without using Visual Studio?

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


回答1:


Yes - there is a 'simple' way.

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 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.

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

Hope this was useful.



来源:https://stackoverflow.com/questions/10615546/run-specflow-tests-without-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!