Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add NUnit as a test framework option for ASP.NET MVC to Visual Web Developer 2008 Express?

According to Professional ASP.NET MVC 1.0, page 8, "If you are using VS 2008 Standard Edition or Visual Web Developer 2008 Express you will need to download and install the NUnit, MBUnit or XUnit extensions for ASP.NET MVC in order for [the Create Unit Test Project] dialog to be shown."

Is there such an extension available to download for NUnit 2.4.8? If so where can I download it from?

If not, how can I set it up? I looked at the ASP.Net MVC and nUnit question and the articles How to: Add a Custom MVC Test Framework in Visual Studio and ASP.NET MVC Test Framework Integration Walkthrough. But they all refer to running devenv /setup which doesn't seem to be available for Visual Web Developer 2008 Express. Has anyone gotten the Create Unit Test Project dialog working with NUnit and VWD Express? How so?

Thanks

like image 779
Mike Henry Avatar asked Mar 20 '09 16:03

Mike Henry


2 Answers

The easiest way now in 2011 is to install this ASP.NET MVC NUnit extension from the Visual Studio gallery. The nice part is that this extension can be updated over time so you will have the latest nunit mvc template.

like image 150
bkaid Avatar answered Oct 03 '22 02:10

bkaid


I just found this Updated NUnit Templates for ASP.Net MVC 1.0 RTM which includes a cmd file to setup the NUnit test framework templates for VWD Express.

Yay, no more manual steps (unless you really want to).

like image 38
Mike Henry Avatar answered Oct 03 '22 01:10

Mike Henry