views:

3706

answers:

6

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

+5  A: 

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

ema
This is bad that most documentation and page of their website are in "TO DO". :\
Daok
I tried this, and it looks very promising, but i just couldn't get then VS addin working.
Eric Labashosky
+9  A: 

This article probably explains what you want to do.

3 Ways to Run NUnit From Visual Studio

SoloBold
+16  A: 

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. Than, in the start option, the command line arguments select the DLL that contain all your test (mine is always in the nunit\bin...). Than select "enable unmanaged code debugging" and you will be able to start the projet inside VS and even use the debugger step-by-step.

This is a free solution.

Daok
+4  A: 

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.

Cory Foy
+3  A: 

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.

Daok
+2  A: 

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

Adam Butler
This is what I do. Quick and simple!
Christian Hayter
Awesome, thanks posting another way to do it!!!
Eric Labashosky