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

前端 未结 30 1868
广开言路
广开言路 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:19

    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.

提交回复
热议问题