VS2017 and NUnit 3.9 No test is available
Can you check the following steps and see if it works?
- In the Visual Studio menu, go to
Test > Test Settings > Default Processor Architecture
and make a note ifX86
is selected orX64
- Now go to the
Build
section in theProperties
window of the project where the tests are written. Make sure thePlatform target
drop-down is selected to eitherAny CPU
or at least it matches the architecture from the abovestep 1
.
Now if you build the solution and try running those tests, you should see that they are now running.
I had the same problem as Amete Blessed and commenting out other Test methods made Test Explorer work and run my test
I found that my Build Events were wrong. Invalid copy command blew all my tests and half a day:
Copy C:\repo\Architecture\*.json $(ProjectPath)/Y
Copy C:\repo\Architecture\*.json $(TargetPath) /Y
instead of
Copy C:\repo\Architecture\*.json $(ProjectDir)/Y
Copy C:\repo\Architecture\*.json $(TargetDir) /Y
Make sure you have installed the NUnit3 Test Adapter from here
https://marketplace.visualstudio.com/items?itemName=NUnitDevelopers.NUnit3TestAdapter