How can I run NUnit tests in Visual Studio 2017?

前端 未结 9 686
后悔当初
后悔当初 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:48

    You need to install NUnitTestAdapter. The latest version of NUnit is 3.x.y (3.6.1) and you should install NUnit3TestAdapter along with NUnit 3.x.y

    To install NUnit3TestAdapter in Visual Studio 2017, follow the steps below:

    1. Right click on menu Project → click "Manage NuGet Packages..." from the context menu
    2. Go to the Browse tab and search for NUnit
    3. Select NUnit3TestAdapter → click Install at the right side → click OK from the Preview pop up

提交回复
热议问题