No test found. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again

前端 未结 30 1751
广开言路
广开言路 2020-12-05 04:00

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

30条回答
  •  情深已故
    2020-12-05 04:10

    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.

提交回复
热议问题