Is there a free Visual Studio addin for Nunit?

Visual StudioUnit TestingNunit

Visual Studio Problem Overview


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

Visual Studio Solutions


Solution 1 - Visual Studio

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.

Solution 2 - Visual Studio

Now you can use Gallio: it's open source. www.gallio.org

Solution 3 - Visual Studio

By the way TestDriven can be downloaded for free if it's for personal use or Open Source project.

I had to find a way to use .Net Reflector inside VS few days ago and when I downloaded TestDriven it cames with. Never got any popup asking me to paid.

Solution 4 - Visual Studio

NUnit actually ships with a basic integrated runner. It's not very good, and not very publicized, but unless Charlie has taken it out, it should be in the source.

Solution 5 - Visual Studio

I know this is an old question but another way to do this is to add an external tool from the tools menu to run nunit - set the arguments to be $(TargetName)$(TargetExt) and initial directory to $(ProjectDir)\bin\Debug

check out this link

Solution 6 - Visual Studio

This is an old question and things have changed since the answer was accepted.


You may try NCrunch to run tests automatically or manually.

Solution 7 - Visual Studio

If you're running Visual Studio 2012, there is a plugin written by Charlie Poole, one of the NUnit contributers, that makes use of the new Visual Studio Unit testing plugins.

Unfortunately it doesn't have much grouping options yet, either by run/not run - so you can't group by class, solution and so on. It also doesn't show you any stacktrace if a test fails, just a simple green tick or red box and a message.

img

Solution 8 - Visual Studio

I haven't used it, but NUnitit is a free Visual Studio Add-in for NUnit.

http://nunitit.codeplex.com

From my experience, the best add-in for visual studio is resharper. TestDriven.Net is also good for unit tests. Hope that helps

Solution 9 - Visual Studio

Also found this one : http://visualstudiogallery.msdn.microsoft.com/c8164c71-0836-4471-80ce-633383031099
It is able to launch your tests in debugger, however you need to recompile the code manually each time you change something - no auto run-build integration

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionEric LabashoskyView Question on Stackoverflow
Solution 1 - Visual StudioPatrick DesjardinsView Answer on Stackoverflow
Solution 2 - Visual StudioemaView Answer on Stackoverflow
Solution 3 - Visual StudioPatrick DesjardinsView Answer on Stackoverflow
Solution 4 - Visual StudioCory FoyView Answer on Stackoverflow
Solution 5 - Visual StudioAdam ButlerView Answer on Stackoverflow
Solution 6 - Visual StudioAliostadView Answer on Stackoverflow
Solution 7 - Visual StudioChris SView Answer on Stackoverflow
Solution 8 - Visual StudioSujith GokuladasView Answer on Stackoverflow
Solution 9 - Visual StudioCyryl PÅ‚otnickiView Answer on Stackoverflow