Reputation: 1937
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.
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
Upvotes: 23
Views: 9506
Reputation: 11050
I encountered this out of a sudden for tests in some projects. In VS did Build->Clean and a rebuild. Then tests worked again.
Upvotes: 0
Reputation: 5279
This is just ReSharper's "default error message" if it somehow failed to run a test. As you can see in this older question (of which this one is basically a duplicate), there are hundreds of possible causes, and you will find more if you search outside of StackOverflow.
In the upper right corner of the "Test Sessions" window, there is an "Errors" button where you can click to see detailed error logs, which may give you some hints. Most people overlook this button because of its size and location (also, why not just show the logs on the right hand side where the test output normally is shown?)
Some common things you can always try:
Overall, poor error reporting in the test sessions UI of the ReSharper test runner is the reason people get frustrated and stuck with issues like this, and it has been like this for over a decade.
Upvotes: 2
Reputation: 355
In addition to the answer given by @Mihails Popovs. Possible cause is that you do not have referenced the Microsoft.NET.Test.Sdk.
Upvotes: 0
Reputation: 25029
As @Peace says, you can update ReSharper, but if that does not help you can:
Upvotes: 0
Reputation: 41
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.
Upvotes: 2
Reputation: 1937
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.
Upvotes: 17
Reputation: 11
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.
Upvotes: 1