如何将NUnit与VS 2008集成(How to Integrate NUnit With VS 2008)

编程入门 行业动态 更新时间:2024-10-27 04:32:14
如何将NUnit与VS 2008集成(How to Integrate NUnit With VS 2008)

嗨我使用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.

更多推荐

本文发布于:2023-07-05 07:54:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1034900.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何将   NUnit   Integrate

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!