.NET单元测试包 [英] .NET unit testing packages

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

问题描述

几年不使用全功能的.NET之后,我又重新使用了.NET,我想知道这些天好的单元测试软件包是什么.

I am getting back into a bit more .NET after a few-years of not using it full-time and am wondering what the good unit testing packages are these days.

我熟悉NUnit(几年前),并曾与 IronRuby进行过短暂的交流,目的是使 RSpec 正常运行,但我所知不多除此之外.

I'm familiar with NUnit (a few years ago) and have played briefly around with IronRuby, with the goal of getting something like RSpec going, but I don't know much beyond that.

我知道我可以在Google上搜索并称之为一天,但是我相信通过在这里提出问题,我可能会得到更好,更明智的回复:-)

I realize I could google for this and call it a day, but I believe I'm likely to get a better and more informed response from asking a question here :-)

建议?

推荐答案

有很多东西太疯狂了.我猜是疯狂的好.

There are so many it's crazy. Crazy good, I guess.

  • 对于保守类型(我), NUnit 仍然可用,仍然胜过一切.
  • 对于Microsoft类型, MSTest 是足够的,但是与NUnit相比,它又慢又笨拙.它还缺乏代码覆盖范围,而不必为昂贵的Visual Studio版本付出高昂的代价.
  • 还有 MbUnit .就像NUnit一样,但它具有一些不错的功能,例如RowTest(使用不同的参数运行相同的测试)和Rollback(回滚数据库,就像在测试后找到它一样).
  • 最后, xUnit.net 是带有一些态度.
  • 哦, TestDriven.NET 将为您提供NUnit和IDE的集成.MbUnit.

我确定他们都很好.不过,除非您只是享受将所有功能都集成在一个IDE中的便利,否则我还是会避开MSTest.

I'm sure they're all just fine. I'd steer away from MSTest though, unless you just enjoy the convenience of having everything in one IDE out of the box.

斯科特·汉塞尔曼(Scott Hanselman)对此主题进行了播客.

Scott Hanselman has a podcast on this very topic.

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

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