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
In my case the tests were discovered but running resulted in "Test not Available..." and the (in)famous: "Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again."
the error was independent of Visual Studio (tested from dotnet CLI tools and nearly naked UNit test) and it was only when targeting .NET 4.7.1. dotnetcore app works fine.
also running tests with the Nuint3 CLI
nunit3-console.exe Tests.csproj
shows the error:
"Either assembly contains no tests or proper test driver has not been found."
the error was because the test-adapter could not be found on a (mapped) network drive or share and was solved by copy it locally and rerun.