NUnit的VS Visual Studio 2008中的单元测试的测试项目? [英] NUnit vs Visual Studio 2008's Test Projects for Unit Testing?
问题描述
我将要启动的工作一个新项目,想进入单元测试。我们将使用VS 2008,C#和ASP.NET MVC的东西。我期待在使用或者NUnit的或内置在VS2008有测试项目,但我愿意研究其他建议。是一个系统比其他更好的或者更易于使用/理解比其他?我希望得到这个项目设置为一种最佳实践为我们的发展努力向前发展的。
I am going to be starting up a new project at work and want to get into unit testing. We will be using VS 2008, C#, and the ASP.NET MVC stuff. I am looking at using either NUnit or the built in test projects that VS2008 has, but I am open to researching other suggestions. Is one system better than the other or perhaps easier to use/understand than the other? I am looking to get this project set up as kind of the "best practice" for our development efforts going forward.
感谢任何帮助和建议!!
Thanks for any help and suggestions!!
推荐答案
<一个href=\"http://stackoverflow.com/questions/92869/nunit-vs-visual-studio-2008s-test-projects-for-unit-testing/92900#92900\">Daok所有名为VS2008的测试项目中亲的,这里有NUnit的亲的。
Daok named all the pro's of VS2008 test projects, here are the pro's of NUnit.
- NUnit的有一个模拟框架。
- NUnit的可以在外面跑的
IDE,如果你想这可能是有用的
运行一个非MS构建服务器上测试
像CC.Net - NUnit的有多个版本现身
比视觉工作室。你不必
等待年的新版本
而且你不必安装IDE的新版本
获得新功能。 - 还有正在开发的扩展功能
对于NUnit的像行测试等。 - Visual Studio的测试需要很长的时间
启动出于某种原因。这是
在2008年更好,但仍然过于缓慢
对我的口味。快速运行测试
就看你没碰坏
可以采取太长。与NUnit的
像Testdriven.Net运行
从IDE测试实际上是多少
更快。尤其是运行时,
单一的测试。
Accorting到谢蒂尔Klaussen这是通过在Visual Studio TestRunner的引起的,在TestDriven.Net运行MSTest的测试使得MSTest的性能相媲美的NUnit
这篇关于NUnit的VS Visual Studio 2008中的单元测试的测试项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!