How can I run NUnit tests in Visual Studio 2017?

前端 未结 9 677
后悔当初
后悔当初 2020-11-29 21:15

I\'ve just installed Visual Studio 2017. I have a project using NUnit for the test cases. Ctrl + R - T no longer runs the tests, and the Tes

9条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-29 21:52

    Add the NUnit test adapter NuGet package to your test projects

    • 2.* (https://www.nuget.org/packages/NUnitTestAdapter/)
    • 3.* (https://www.nuget.org/packages/NUnit3TestAdapter/)

    Or install the Test Adapter Visual Studio extension. There is one for

    • 2.* (https://marketplace.visualstudio.com/items?itemName=NUnitDevelopers.NUnitTestAdapter)
    • 3.* (https://marketplace.visualstudio.com/items?itemName=NUnitDevelopers.NUnit3TestAdapter).

    I prefer the NuGet package, because it will be in sync with the NUnit version used by your project and will thus automatically match the version used in any build server.

提交回复
热议问题