Resharper - 将不确定的测试显示为不确定而不是失败?
有谁知道是否有一种方法可以将 resharper 中的不确定测试显示为不确定而不是失败?除了由于错误而失败的测试之外,我想保留仍然需要实施的测试。
Does anyone know if there is a way to show inconclusive tests in resharper as inconclusive rather than failed? i would like to keep tests that still need to be implemented aside from test that are failing due to a bug.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
MSTest
,您可以应用Ignore
属性,测试运行器将忽略测试(并将其标记为“忽略”,而不是“不确定”)。这允许您放置占位符/部分实现/忽略损坏的测试。
例如
不会产生失败的测试,但会被忽略。
With
MSTest
, you can apply theIgnore
attribute and the test runners will ignore the test (and labelled it as 'ignored', rather than 'inconclusive').This allows you to put placeholders/ partly implemented/ ignore broken tests.
e.g
will not produce a failed test, but will be ignored.