visual-studiovisual-studio-2017nunitvstestvisual-studio-2019

How can I run NUnit tests in Visual Studio 2017?


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 Test Explorer no longer finds any test cases marked with the TestCase attribute.

Is there a way to get NUnit running yet, or an update I could find?

I reinstalled NUnit from the NuGet Package Manager to the latest version with no improvement.


Solution

  • Add the NUnit test adapter NuGet package to your test projects

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

    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.