nunit3-netcore-console.dll is not finding tests in all my assemblies #1357
-
I'm using nunit3-netcore-console 3.16.3 with --explore to list the tests in each of my C# test assemblies. I have about 96 assemblies. It works great except that 7 of them return no tests. I compared the csproj for one that doesn't work to a very similar one that does and I can't see any real difference. They both target net6, both use "Microsoft.NET.Test.Sdk" Version="17.7.0", "NUnit" Version="3.13.3" and "NUnit3TestAdapter" Version="4.5.0". There's no redirection in App.config. The command looks like this:
I have the same results on both Windows and Linux. I can't use
The same problem happens with nunit3-console.exe 3.10.0. When I run the tests using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
A few things you might try...
One question... are any of your failing assemblies using one of these?
|
Beta Was this translation helpful? Give feedback.
A few things you might try...
Microsoft.NET.Test.Sdk
andNUnit3TestAdapter
. They are not used bynunit-netcore-console
. In particular, the adapter may be pulling in a different version of the NUnit engine.nunit.engine
included with the adapter. (Sorry, I don't know what that is for 4.5)nunit3-console.exe
instead ofnunit3-netcore-console.dll
. However, use a later version, which supports .NET 6.0. I suggest one of the 3.15 or 3.16 versions.One question... are any of your failing assemblies using one of these?