C# 免费的 NCrunch 替代品
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13132214/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Free NCrunch alternative
提问by Pacane
Since NCrunch has left the free market, I was looking for a similar tool for code coverage marking, and continous testing like NCrunch
由于 NCrunch 已经离开了自由市场,我一直在寻找一个类似的工具来进行代码覆盖率标记,以及像 NCrunch 这样的持续测试
edit: I'm using VS2012
编辑:我正在使用 VS2012
update:
更新:
I've been using ContinuousTest for a while now, it's OK, but I think it lacks feedback when I write code. The feedback is good when I write tests, but when I break a test (while editing source code) it won't tell me that the test broke (in the margin, like it does for NCrunch). So if anyone knows other tools, I'm still listening.
我已经使用ContinuousTest一段时间了,还可以,但是我认为在编写代码时缺乏反馈。当我编写测试时,反馈很好,但是当我破坏测试时(在编辑源代码时),它不会告诉我测试失败了(在空白处,就像 NCrunch 那样)。所以如果有人知道其他工具,我还在听。
采纳答案by Tony T
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.
从我所读到的,大多数人都在同一条船上,正在转向ContinuousTests。我不认为有一个完美的替代品......然而。
Here is a decent comparison between NCrunch and ContinuousTests
这是NCrunch 和 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.
最近在 VS2012 中使用 ContinuousTests 后,我决定卸载。摩擦太大,无法运行。我相信它需要更新才能正确支持 VS2012。
回答by Shaun Wilde
A tool similar to NCrunch would be ContinuousTestsbut I don't think they do code coverage in the classical sense.
类似于 NCrunch 的工具是ContinuousTests,但我认为它们不会进行经典意义上的代码覆盖。
Open Source code coverage tools for .NET such as PartCoverand OpenCoveralso exist.
回答by NpnDan
I was an avid NCrunch user. Now that they have went commercial I am using ContinuousTestsand TestDriven.netwhich contains NCover for code coverage.
我是一个狂热的 NCrunch 用户。现在他们已经商业化了,我正在使用ContinuousTests和TestDriven.net,其中包含用于代码覆盖的 NCover。
回答by Haugholt
回答by Nick
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.
NCrunch 是一个很棒的工具,我在它仍处于测试阶段时就发现了它,作为一名开发人员,我尽力支持那些正在做很酷的项目的人。如果人们使用 NCrunch 并且喜欢它,我鼓励您购买许可证。
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.
像这样的东西需要很多时间来开发,如果人们不愿意支持它,那么很少有人会创建你喜欢的酷工具。
回答by Qerim Shahini
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 物有所值。考虑到 Remco 将其无缝集成到 VS 中所付出的努力,159 美元确实不算差;这真的不容易。在我看来,当与它提供的指标相结合时,这是一个简单的决定。
回答by Mahdi K.
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 是一个绝对好的产品,虽然有点贵。建议的替代方案 (ContinuousTest) 效果不佳,因为它没有逐行覆盖率、总代码覆盖率指标,并且它抱怨大型解决方案中正确引用的 NuGet 包(与 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.
NCrunch 还与 Visual Studio 无缝集成,这使编码变得更快、更有趣,并且您在编码时知道何时满足单元测试中指定的所有条件,而无需按任何按钮。

