Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get Resharper to run tests in debug, when I get debug is "Inconclusive: Test not run"

How can I get Resharper to run tests in debug, when I get debug is "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);     } } 

But the build-in test runner in Visual Studio works for both just running and for debug

Additional info: It appears to be only happening in my VS 2017 preview instance !

Additional info: It also appears to be happening in my VS 2017 with the recent Update 3 !

like image 365
SteveC Avatar asked Jul 20 '17 17:07

SteveC


People also ask

How do I debug a single test in Visual Studio?

To debug a single test: Click on a test method name, then press Ctrl+R, Ctrl+T. (Or go to Test / Debug / Tests in Current Context.)


2 Answers

The answer, at least so far, is to install the R# 2017.2 EAP 13 ...

Yes, the 13, not the 12

like image 167
SteveC Avatar answered Oct 19 '22 22:10

SteveC


As of R# 2017.2 official build (Aug 24,2017), this should work again.

like image 21
hcd Avatar answered Oct 19 '22 21:10

hcd