.NET单元测试包? [英] .NET Unit Testing packages?

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

问题描述

再回到成多一点的.NET历经数年不使用全时,不知道什么是好的单元测试包是这些天。

Getting back into a bit more .NET after a few-years of not using it full-time, and 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 don't know much beyond that.

我知道我可以谷歌,这和收工,但我相信我会得到一个更好,更明智的反应从这里提出一个问题: - )

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的 仍然可用,仍比能力更。
  • 对于微软类型, MSTest的 是足够的,但缓慢和笨重相比,NUnit的。它也缺乏code覆盖无需支付大笔的Visual Studio的昂贵的版本。
  • 还有 MbUnit的 。这就像NUnit的,但漂亮的功能,如RowTest(运行相同的测试用不同的参数)和rollback(把数据库恢复像你这样的试验后发现)
  • 最后, xUnit.net 是一些态度的时尚选择。
  • 哦, TestDriven.NET 会给你的IDE集成为NUnit的和MbUnit的。
  • For the conservative types (me), NUnit is still available and still more than capable.
  • For the Microsoft-types, MSTest is adequate, but slow and clunky compared to Nunit. It also lacks code coverage without paying the big bucks for the pricey versions of Visual Studio.
  • There's also MbUnit. It's like NUnit, but has nifty features like RowTest (run the same test with different parameters) and Rollback (put the database back like you found it after a test)
  • And finally, xUnit.net is the trendy option with some attitude.
  • Oh, and TestDriven.NET will give you IDE integration for both Nunit and MBunit.

我敢肯定,他们都只是罚款。我想脱离过往MSTest的,虽然,除非你只是享受有一切都在一个IDE开箱即用的便利。

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 对这个题目的播客。

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

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