当我得到调试为“不确定:测试未运行"时,如何使Resharper在调试中运行测试? [英] How can I get Resharper to run tests in debug, when I get debug is "Inconclusive: Test not run"
问题描述
当我获得调试信息为不确定:测试未运行"时,如何让Resharper在调试中运行测试
How can I get Resharper to run tests in debug, when I get debug is "Inconclusive: Test not run"
在Resharper测试运行程序中运行任何MsTest测试都可以,但是如果我尝试调试,则R#测试运行程序仅显示Inconclusive: Test not run
Running any MsTest test in Resharper test runner is Ok, but if I try to debug, the R# test runner just displays Inconclusive: Test not run
即使通过简单的测试(例如
This happens even with a simple test, e.g.
[TestClass]
public class BasicTests
{
[TestMethod]
public void Placeholder()
{
Assert.AreEqual(1, 1);
}
}
但是Visual Studio中的内置测试运行器既可以运行又可以调试
But the build-in test runner in Visual Studio works for both just running and for debug
其他信息: 它似乎仅在我的VS 2017预览实例中发生!
Additional info: It appears to be only happening in my VS 2017 preview instance !
其他信息: 在我的VS 2017中,最近的Update 3似乎也正在发生这种情况!
Additional info: It also appears to be happening in my VS 2017 with the recent Update 3 !
推荐答案
从R#2017.2正式版本(2017年8月24日)开始,这应该可以再次使用.
As of R# 2017.2 official build (Aug 24,2017), this should work again.
这篇关于当我得到调试为“不确定:测试未运行"时,如何使Resharper在调试中运行测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!