“使用调试器进行测试”在 ReSharper 中?
“TestDriven.NET”有一个很棒的功能,称为“使用调试器进行测试”。 ReSharper中有类似的东西吗?
尝试用谷歌搜索这个,但找不到任何东西。
"TestDriven.NET" has a great feature called "test with debugger". Is there anything like this in ReSharper?
Tried googling this, but can't find anything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您的意思是,您可以在调试中使用断点运行测试,那么您可以在 ReSharper 中执行此操作。
http://www.jetbrains.com/resharper/features/unit_testing.html
If you mean, can you run a test in debug with breakpoints then yes you can do that in ReSharper.
http://www.jetbrains.com/resharper/features/unit_testing.html
ReSharper 没有这个功能。您必须坚持使用 TestDriven.NET 才能使用此功能。或者更好地将完整的测试添加到您的项目中,然后您将能够在调试器中运行它们(通过 ReSharper)。
ReSharper does not have this exact feature. You have to stick with TestDriven.NET for this feature. Or better add full-blown tests to your project, and then you'll be able to run them in debugger (via ReSharper).
只是想补充一点,在 VS2012 中现在有一个内置功能“调试选定的测试”。它的作用完全相同。
附言。实际上,我(个人发现vs2012非常好,几乎不需要Resharper或Productivity-Power-Tools......开箱即用非常好......抱歉,只是个人意见。
Just wanted to add, that in VS2012 there's now a built-in feature "Debug selected test". It does exactly the same.
PS. Actually, I (personally found that vs2012 is so good it almost doesn't need Resharper or Productivity-Power-Tools... It's quite good out of the box.. Sorry, just a personal opinion.