是否可以使用 Resharper GUI 可视化参数化 NUnit 测试?
我正在使用 ReSharper 5.1 的 单元测试会话窗口 来运行NUnit 测试。它提供了出色的可视化效果,90% 的情况下这正是我所需要的。
唯一的问题是“单元测试会话”窗口不支持带有参数的测试。我希望参数的每个值都有一个单独的节点,例如 此处的屏幕截图。在 ReSharper 中,我只看到整个方法的一个节点,并且无法知道它传递了哪些参数以及失败了哪些参数。
有什么方法可以让我看到 ReSharper 中的各种运行,或者我是否需要不同的工具(哪个是最好的)?
谢谢你!
I'm using the Unit Test Sessions window of ReSharper 5.1 in order to run NUnit tests. It gives great visualization and 90% of the time it is just what I need.
The only problem is that the Unit Test Sessions window does not support tests that have parameters. I would like to have a separate node for each value of the parameters, like in the screenshots here. In ReSharper I only see one node for the whole method, and there is no way to know which parameters it passed with and which parameters it failed with.
Is there any way that I can see the various runs in ReSharper, or do I need a different tool (and which one is the best)?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您请求的功能将成为 Resharper 6 的一部分。请参阅 http://youtrack.jetbrains。 net/issue/RSRP-147616。
与此同时,您可以尝试使用 gallio ,如此处所述 ReSharper 单元测试运行程序 - TestCase
由于 ReSharper 6 现已推出,您可以在此处找到有关其 TestCase 支持的信息 http://hadihariri.com/2011/08/23/new- features-in-resharper-6-unit-test-runner/
The feature which you are requesting will be part of Resharper 6. See http://youtrack.jetbrains.net/issue/RSRP-147616.
In the meantime you could try to use gallio as stated here ReSharper Unit Test Runner - TestCase
As ReSharper 6 is now available you could find information about its TestCase support here http://hadihariri.com/2011/08/23/new-features-in-resharper-6-unit-test-runner/
据我所知,您需要的功能在该产品的 v5.x 中不存在。
The feature you need does not exist in v5.x of the product as far as I know.