Some time ago I downloaded a project from GitHub, proceeded to build it, and then I tried to run the test: not a single one of them was executed.
The “Test Explorer” window was in order: all the test were there, still when I selected any of them and tried to run it, visual studio just ignored me: no error message, no build errors, nothing.
The only hint that something was wrong – besides the obvious facts that the test remained obstinately in a not run state – was this message in the Visual Studio output console:
[Informational] ========== Discover test finished: 0 found (0:00:00,4180239) ==========
[Informational] —— Run test started ——
[Warning] No test is available in xxx.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
[Informational] ========== Run test finished: 0 run (0:00:00,419024) ==========
I checked the platform target configuration for the project: AnyCPU. So there was not incoherence with the Test settings > DefaultProcessor Architecture.
Well, when downloading a new project it is now unusual to run into silly configuration issues.This time I had an inkling of what could be askew: if you want to run NUnit tests from Visual Studio, you need to install the NUnitTest3Adapter. Could it be that it wasn´t installed in the solution? Well that was exactly the case: I installed the NUnitTest3Adapter nuget using the package manager and that solved the problem!