免费的 NCrunch 选择

由于 NCrunch 已经离开了自由市场,我正在寻找一个类似的工具,用于代码覆盖率标记,以及像 NCrunch 这样的持续测试

编辑: 我在使用 VS2012

更新:

我已经使用 ContinuousTest 有一段时间了,它还可以,但我认为在编写代码时它缺乏反馈。当我编写测试时,反馈是好的,但是当我中断测试时(编辑源代码时) ,它不会告诉我测试中断了(在空白处,就像它对 NCrunch 所做的那样)。如果有人知道其他工具,我还在听。

33332 次浏览

A tool similar to NCrunch would be ContinuousTests but I don't think they do code coverage in the classical sense.

Open Source code coverage tools for .NET such as PartCover and OpenCover also exist.

I was an avid NCrunch user. Now that they have went commercial I am using ContinuousTests and TestDriven.net which contains NCover for code coverage.

From what I've read, most people are in the same boat and are moving to ContinuousTests. I do not think there is a perfect replacement... yet.

Here is a decent comparison between NCrunch and ContinuousTests

Update

Upon recent usage of ContinuousTests with VS2012 I have decided to uninstall. There was too much friction to get it running. I believe it needs an update to support VS2012 properly.

Have a look at Giles for continous testing.

It currently supports NUnit, xUnit.net, Machine.Specifications and NSpec, but the roadmap shows that support for all major testing frameworks is planned.

NCrunch is a fantastic tool that I discovered while it was still in beta, as a developer I try to do my best to support people that are doing cool projects. If people were using NCrunch and liked it, I'd encourage you to purchase a license.

Stuff like that takes a lot of time to develop and less people will be creating the cool tools you love if people aren't willing to support it.

NCrunch is worth every penny. $159 is really not that bad considering the effort put in by Remco to integrate it seamlessly into VS; which is really not easy. That when combined with the metrics it provides make it a simple decision in my opinion.

NCrunch is an absolutely good product, a bit expensive though. The suggested alternative (ContinuousTest) does not work very well, as it doesn't have line by line coverage, total code coverage metrics and it complains about properly referenced NuGet packages in large solutions (works perfectly fine with NCrunch).

NCrunch also has a seamless integration with Visual Studio which makes coding even faster and more fun, and you know when you met all criteria specified in unit tests while you are coding, without the need to press any button.