visualstudio.xunit icon indicating copy to clipboard operation
visualstudio.xunit copied to clipboard

xunit.runner.visualstudio 2.4.3 - Unexpected error detected. Test run aborted. 0 total tests

Open iluzek opened this issue 4 years ago • 3 comments

With latest version xunit.runner.visualstudio 2.4.3.

Created sample project for .net 5 and corresponding .net core (5.0) class library with tests. Had to change <TargetFramework>net5.0</TargetFramework> to <TargetFramework>net5.0-windows</TargetFramework> to make it build but it seemed to work after that.

But Visual Studio and Xunit report issues as follow: Unexpected error detected. Check the Tests Output pane for details. Test run aborted. 0 total tests - 0 Passed, 0 Failed, 0 Skipped.

I downgraded xunit.runner.visualstudio 2.4.1 and without doing anything else it worked fine.

Downgrading to 2.4.2 also does NOT work.

iluzek avatar Feb 19 '21 18:02 iluzek

When I try a build after upgrading to 2.4.3. I get the error:

"Program does not contain a static 'Main' method suitable for an entry point"

I'm not sure if this is related but my solution is to also downgrade to 2.4.1.

nfplee avatar Apr 01 '21 16:04 nfplee

I noticed this too in our .Net 3.1 pipelines after having upgraded, 2.4.1 does not have this issue

m4m4m4 avatar Apr 26 '21 10:04 m4m4m4

Visual Studio 2019 Enterprise, 2.4.3 not work too, but I switch to 2.4.1, it work well.

ghost avatar Sep 24 '21 03:09 ghost

Closing this as 2.4.5 is the current version, and I haven't heard any other feedback about this being a problem now.

bradwilson avatar May 21 '23 23:05 bradwilson