.NET测试框架的建议 [英] .NET Testing Framework Advice

查看:153
本文介绍了.NET测试框架的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望推出一个单元测试框架到混合在我的工作。我们使用Visual Studio 2005(尽管我们可能会移动到2008年的未来6个月内),主要在C#中的工作。如果框架具有某种IDE集成,这将是最好的,但我愿意没有整合,但仍相对简单的获得建立框架。我会得到抵抗,或另一种方式,所以如果我能知道我推着是不是在颈部疼痛,这将有助于我的情况。

I'm looking to introduce a unit testing framework into the mix at my job. We're using Visual Studio 2005 (though we may be moving to 2008 within the next 6 months) and work primarily in C#. If the framework has some kind of IDE integration that would be best, but I'm open to frameworks that don't have integration but are still relatively simple to get set up. I'm going to get resistance to it one way or another, so if I can make sure what I'm pushing isn't a pain in the neck, that would help my case.

这是我迄今所做的分NUnit的研究最明显的选择,但我想它推荐给我的团队之前得到谁的人实际上是用它的IM pressions。

The obvious choice from the research I've done so far points to nUnit, but I'd like to get the impressions of someone who's actually used it before recommending it to my team.

有没有人在那里使用NUnit的?如果是这样,是否有任何缺陷或局限,我应该知道?是否还有其他不错的选择了吗?如果是这样,如果你同时使用NUnit的那个,我会非常AP preciate他们的长处和弱点的想法。

Has anyone out there used nUnit? If so, are there any pitfalls or limitations of which I should be aware? Are there other good options out there? If so, if you've used both nUnit at that, I'd greatly appreciate an idea of the strengths and weaknesses of them.

推荐答案

我觉得 NUnit的 您最好的选择。随着 TestDriven.NET ,你在 VS.NET 大整合。 (ReSharper的同时,如果您使用的是有一个单元测试运行)。 NUnit的它简单易用,并遵循一个既定的模式。你还可以使用它,它总是有助于找到大量的项目/教程/指南。

I think NUnit is your best bet. With TestDriven.NET, you get great integration within VS.NET. (Resharper also has a unit test runner if you're using it). NUnit it simple to use and follows an established paradigm. You'll also find plenty of projects/tutorials/guides using it which always helps.

您其他的主要选择可能是MbUnit的,这是越来越多的位置本身作为 BDD 框架的选择(结合与加利奥的 http://www.gallio.org )。

Your other main choice is probably MBUnit, which is more and more position itself as the BDD framework of choice (in conjunction with Gallio http://www.gallio.org).

这篇关于.NET测试框架的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆