Can't run SpecFlow tests from Visual Studio with MSTest

心不动则不痛 提交于 2019-12-12 01:46:22

问题


I had this working on a previous project and now on a new project I've setup SpecFlow, got it generating tests from my feature file but I can't run the tests from the feature file and instead have to go to the code behind to run the tests. I've also installed the VS extension "Spec Flow for Visual Studio". What can I try?


回答1:


as Greg suggested the first thing to check is that your config is set up correctly for ms test. you basically need this:

<specflow>
    <unitTestProvider name="MSTest"/>
</specflow>

Also worth checking your generated feature.cs tests to see what unit test language they are in



来源:https://stackoverflow.com/questions/28841921/cant-run-specflow-tests-from-visual-studio-with-mstest

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