嗨我使用NUnit创建了一个单元测试用例。当我运行测试NUnit它工作正常。但我需要使用Visual studio运行它。所以我推荐NUnit网站并按照以下步骤1)右键单击测试项目和单击属性|选择调试选项2)选中外部程序选项并选择nUnit exe文件。 3)我运行测试
我得到的错误:无法启动,因为测试项目不包含任何测试方法。但我包括4个在NUnit GUI中工作的测试方法。
提前致谢
Hi i created a unit test case using NUnit.When i run the test NUnit it works fine.But i need to run it by using Visual studio.So i referred the NUnit website and followed the below steps 1)Right clicked the test project and clicked properties |Chose Debug option 2)checked the external program option and choosed the nUnit exe file. 3)And i run the test
Error i got: Cannot start because the test project does not contain any test method.But i included 4 test methods which works in NUnit GUI.
Thanks in advance
最满意答案
查看TestDriven.NET ,一个免费的Visual Studio插件,允许您直接从IDE运行NUnit的单元测试。
Check out TestDriven.NET, a free Visual Studio add-in that allows you to run your unit tests with NUnit directly from the IDE.
更多推荐
发布评论