Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a free Visual Studio addin for Nunit?

I'm cheap and don't want to pay for ReSharper or TestDriven.NET, is there a free visual Studio addin for NUnit?

like image 645
Eric Labashosky Avatar asked Oct 29 '08 18:10

Eric Labashosky


People also ask

How do I add a NUnit reference in Visual Studio 2019?

Right-click the References item and then click Add Reference. Select Project | Add Reference from Visual Studio's main menu. In the Reference Manager, click Browse. Browser for nunit.

What is NUnit test adapter?

The NUnit Test Adapter allows you to run NUnit tests inside Visual Studio. The current release, version 2-0, is designed to work with Studio 2012 (All updates), Visual Studio 2013 (All updates) and Visual Studio 2015 (tested with all pre-releases, checked April 2015).

How do I use NUnit console runner in Visual Studio?

Just add NUnit tests to your project and they will now magically show up in the Test Explorer and run when you hit the > button. Instead of the NuGet package, you'll need to use the test runner from the Visual Studio Gallery or from the Tools -> Extensions and Updates menu.


1 Answers

You can create a blank project (Choose console application for example) and in the property of the project you can select DEBUG tag and select "Start External Program". Put the path of Nunit. Then, in the start option, the command line arguments select the DLL that contains all your tests (mine is always in the nunit\bin...). Then select "enable unmanaged code debugging" and you will be able to start the project inside VS and even use the debugger step-by-step.

This is a free solution.

like image 86
Patrick Desjardins Avatar answered Sep 20 '22 00:09

Patrick Desjardins