Visual-studio – nunit is not an available test framework in vs2008

nunitvisual-studio-2008

I have been running Visual Studio 2008 Team Edition for some time now and need to start using nunit. I loaded nunit 2.4.8 but nunit is not showing as a selection for a testing framework. This is the selection you see when starting a new project and it asks if you want to setup a testing project and which framework you wish to use (only displays Visual Studio Unit Test).

EDIT: The only choice I do get is the "Visual Studio Unit Test" the one installed with VS2008. I have only tried it in a new MVC project. I will try in some other project types and see what choices I get. Trying web project and winforms, unit testing isn't an option at the start of the project; which somewhat makes sense to me.

Update: I found a setting in the nuit GUI interface at Tools > Options; from the options tree IDE Support > Visual Studio. There is a checkbox to enable Visual Studio Support. I thought it was a home run, but after checking it, restarting apps, XP, etc. still the same issue where nunit isn't an option as a testing framework.

I know this should work as I described as Stephen Walther used nunit in his tutorial video with Charlie Poole of nunit.

Best Answer

The Visual Studio integration is not provided by NUnit currently. However, you can create templates yourself that work the same way. For NUnit, you can find instructions and templates created from those instructions. There are also templates that others have created, you just need to google for them.

From the comments to the Walther/Poole video, this appears to be the method used to get the NUnit option for that demo.