How to fix: NUnit unit tests not showing up in testing pad in Visual Studio Community (Mac)

前端 未结 3 930
不知归路
不知归路 2021-01-21 22:47

In spite of adding NUnit from NuGet to an existing .Net Core project, no unit tests are being shown in the Test Pad.

Note: I posted these images as links because I have

3条回答
  •  感情败类
    2021-01-21 23:32

    As lex-li comments, you should install the nuget version of the adapter (https://www.nuget.org/packages/NUnit3TestAdapter/3.12.0).
    You install this into your solution, preferably for all test projects.

    (The adapter on the marketplace is the vsix adapter, which can be installed into VS itself - but this practice is not recommended and as you points out, doesn't even seem to work for Mac Community version.)

提交回复
热议问题