当您拥有 Resharper 时,为什么还要使用 TestDriven.net?
据我所知,TestDriven.net 专注于提供从 Visual Studio 内直接访问运行测试的权限。然而,Resharper 虽然是一个更通用的工具,但也提供了此功能。如果使用 Resharper,那么使用 TestDriven.net 还有什么意义吗?
As far as I can tell, TestDriven.net is focused on giving direct access to running tests from within Visual Studio. Yet, Resharper, while being a more general tool, provides this functionality as well. If one uses Resharper, is there any point in using TestDriven.net?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
如果您有重新磨刀器,那么不,您可能不需要它。如果您不这样做,它是一个很棒的免费工具。
If you have resharper, then no, you probably don't need it. If you don't, its a great, free tool.
使用 TestDriven.NET,您可以使用“运行测试”执行“任何”方法。我使用执行一些静态方法来测试一些我不确定的东西(例如日期时间格式等),并且一旦解决,就不需要进行单元测试。
如果 ReSharper 也有这个,我还没有找到它,或者是被 TestDriven.NET 蒙蔽了;-)
据我所知,它只能执行[Test]等带注释的函数。
With TestDriven.NET you can execute "any" method with "Run Test(s)". I use that execute some static methods to just test some things I'm unsure of (like DateTime formats, etc.) and that, once settled, don't need to be a unit test.
If ReSharper has that too, I haven't found it yet or was too blinded by TestDriven.NET ;-)
As far as I can tell, it can only execute [Test], etc. annotated functions.
对我来说,TestDriven.NET 的优点可归结为三个要点:
For me, the advantages of TestDriven.NET come down to three main points:
TestDriven.net 有一项 Resharper 没有的功能:代码覆盖率报告,该报告非常有用。
TestDriven.net has one feature Resharper does not: the code coverage report, which is extremely useful.
我不喜欢 Resharper 有几个原因,但我想从 VS 运行和调试测试,这就是我喜欢 TestDriven.net 的原因。而且它是免费的。
I don't like Resharper for couple of reasons, but I want to run and debug tests from VS, and that's why I like TestDriven.net. Plus it is free.
我发现 TestDriven.net 比 ReSharper 更适合运行单元测试。 我认为这可能只是因为我经常使用 TestDriven.net,并且只使用 ReSharper 几个星期。
ReSharper 似乎只是运行测试并查看其结果需要更多步骤,据我回忆,ReSharper 显示了一个复杂的 UI,而不仅仅是从单个测试中提供简单的文本输出。
在多次使用 ReSharper 后,我想说它擅长运行大量单元测试,并在超过 1 个测试失败时显示综合结果。我仍然认为 TestDriven.net 非常适合运行单个单元测试,或者当您经常运行测试而只有 1 或 2 个测试失败时。
I found TestDriven.net better then ReSharper for running unit tests. I think this may just be because I have used TestDriven.net a lot and was only using ReSharper for a few weeks.
ReSharper just seems to be a lot more step to run a test and see its results, from what I recalled ReSharper displayed a complex UI rather than just giving simple text output from a single test.
After using ReSharper a lot more, I would say it is good at running lots of unit tests and showing the combined result when more then 1 test fails. I still think TestDriven.net is great for running a single unit test, or when you run test so often that only 1 or 2 tests fail.