20

I have an issue very similar to this one.

Debugging any test in Resharper returns "Inconclusive: test not run". This occurs for every test, every solution, every project at my machine. Reinstalling VS2019 and Resharper didn't help. Running tests works fine.

enter image description here I've debugged test using devenv.exe /ReSharper.LogFile C:\temp\resharper.log /ReSharper.LogLevel Verbose command and the result is this (a fragment of ~6900 lines file).

The first error says: “Method 'StartSessionAsync' in type 'ReSharperAwareWrapper' from assembly 'JetBrains.ReSharper.UnitTesting.MSTest.Provider, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325' does not have an implementation.”

I tried all the popular answers in the post I've linked and nothing seems to help.

Code is .NET Core 3.1 based C# solution.

Resharper: 2020.1.4 | Visual Studio: 16.7.0

Peace
  • 1,027
  • 1
  • 7
  • 20

4 Answers4

17

I've solved an issue by installing 2020 EAP version of resharper (2020.2 EAP). Seems like it's a bug in 2020.1.4 version.

Peace
  • 1,027
  • 1
  • 7
  • 20
1

I started to have exactly the same issue after i updated VS to 16.7. Funny thing is that it broke unit test debugging in Rider as well.
Microsoft has pushed new Microsoft.NET.Test.Sdk package, but looks like it does not help. As a workaround, you can launch test from VS Unit Test window, instead of Resharper's one.

0

For me it was because the test was unchecked at build time. So I had to checked the Unit Test projects in Build -> Configuration Manager . check column build.

Ravier
  • 11
  • 2
0

As @Peace says, you can update ReSharper, but if that does not help you can:

  1. Reboot
  2. Update Visual Studio: Help > Check for Updates
Jess
  • 22,018
  • 18
  • 118
  • 135