I am in the process of upgrading our existing solution to .Net 4.6.1 and have been unable to get our unit tests to run during a server build. Locally they run as expected an
I am having the same issue. I am using Visual Studio 2017 Community Edition.
I used these steps to successfully discover all my test cases and successfully run it:
First go to Extensions and Updates, install NUnit3 Test Adapter. If you already have, just enable it.
Restart your Visual Studio 2017, it will automatically prompt to
install your extension, if a prompt says to end task to continue
installing, just click "End Task".
After that, rebuild your Test Project and all test cases will now be identified and you can now start running your test cases.