How to run SpecFlow tests in Visual Studio 2010?

后端 未结 8 1733
伪装坚强ぢ
伪装坚强ぢ 2020-12-23 16:57

Trying to get SpecFlow running with a fresh VS2010 Professional install. Created a new console application and added references to NUnit and SpecFlow. Created a SpecFlow fea

8条回答
  •  滥情空心
    2020-12-23 17:23

    If you want to be able to run your tests directly from Visual Studio 2010 without any additional tools or extensions than you should configure SpecFlow to use MsTest as its unit test framework.

    This can be done in your application configuration file with the following:

       
        

    The generated code-behind file will then contain MsTest tests that are recognisable by Visual Studio and can be run with the build-it test runner.

    No need to use NUnit at all.

提交回复
热议问题