Debug test results in 'Inconclusive: Test not run'

Completed

Visual Studio 2019
Version 16.7.1

xUnit 2.4.1

xunit.runner.visualstudio 2.4.3

 

Very simple test. If I 'run' the test, it passes

 

However, if I try to debug the test

I get Inclonclusive: Test not run

 

Restart vs, restarted computer etc...

11 comments
Comment actions Permalink

I have similar behavior with NUnit (and also tested with xUnit) except while trying to run the test. The details of the warning stated:  "test was left pending after its run completion".

Microsoft Visual Studio Community 2019
Version 16.7.1
VisualStudio.16.Release/16.7.1+30406.217

JetBrains ReSharper 2020.2 Build 202.0.20200810.170909

This just started after installing the latest version.  If reverting to previous version then issue does not occur.

Looking at the resharper log it looks like an Access Denied Exception attempting to start the tests so the tests never finish and hence the inconclusive/pending state.  I'll submit the log file for review.

1
Comment actions Permalink

Hello,

 

What ReSharper version do you use? Please check the problem with the latest ReSharper 2020.2 - https://www.jetbrains.com/resharper/download/#section=resharper-installer

If the problem is still there please start VS with the following command: devenv.exe /ReSharper.LogFile C:\log\resharper_log.txt /ReSharper.LogLevel Verbose, reproduce the issue and send us resharper_log.txt. Please share it privately via "Submit a request" form at the top of this page.

Thank you.

0
Comment actions Permalink

Hi,

 

I have the same problem trying to debug NUnit tests in Rider 2020.1.4. I can run my tests fine, but when I attempt to debug them they all get marked Inconclusive: Test not run. I can debug the same tests just fine in Visual Studio 16.7.0 which doesn't have resharper installed.

 

The two warning messages I can see in the log are:

 

Element ... was left pending after its run completion.

 

Transition declined: Transition from state <v1.HostBinding> on event <remote::1.TestExecution.StatsChange>.
0
Comment actions Permalink

Hello Yarhamjohn,

 

Could you please try installing Rider 2020.2 - https://www.jetbrains.com/rider/download/ and check if the problem is still reproduced in it.

Thank you.

0
Comment actions Permalink

Hi Angelina,

 

Upgrading to 2020.2 appears to have fixed the issue, thanks!

 

John

1
Comment actions Permalink

Same, upgrading fixed it for me too

0
Comment actions Permalink

Confirming for anyone googling this: upgrading to 2020.2.1 fixes the issue of xunit test class being skipped while debugging!

1
Comment actions Permalink

This issue seems to be back.

Visual Studio Version 16.7.4/5 Resharper 2020.2.3

Can't run/debug tests that are targeting FullFramework 4.6.2. Get the same "was left pending after its run completion"

Test projects targeting .netcore3.1 seems to run and debug though.

0
Comment actions Permalink

Hello Jako Dewet,

 

Is there any chance you could provide us some sample solution in which the problem is reproduced?

Please also start VS with the following command: ``devenv.exe /ReSharper.LogFile C:\log\resharper_log.txt /ReSharper.LogLevel Verbose``, reproduce the issue and send us resharper_log.txt.

You can share all the info privately via "Submit a request" form at the top of the page.

Thank you.

0
Comment actions Permalink

Hi Angelina

I sent the log, but we have a big solution, with about 180 projects, some fullframework, some .netcore. We had multiple versions of the nUnitTestAdapter installed. I consolidated everything to 3.17 and it seems to solve the issue.

Thanks

0
Comment actions Permalink

Upgrade to 2020.2.4 worked for me too.  So happy to have my R# back!

0

Please sign in to leave a comment.