1

I am using Visual Web Developer 2010. I have installed NUnit, and I'm trying to get it so that NUnit is a selectable testing framework when you create an ASP.NET MVC 3 project.

Since I am using Visual Web Developer, I do not have access to MSTest. What do I need to do to get NUnit loaded as a Test Framework so I can add it as a project based off of a template when I create an MVC 3 project?

2
  • Seems, like a duplicate: stackoverflow.com/questions/21137/asp-net-mvc-and-nunit Commented Dec 22, 2011 at 18:23
  • @AlexanderYezutov That's over 3 years old, and I'm sure there could possibly be an easier way currently. Commented Dec 22, 2011 at 18:25

1 Answer 1

1

You may checkout the following template. It's for VS2010 Professional and higher since VWD 2010 do not support extensions.

Sign up to request clarification or add additional context in comments.

6 Comments

Thanks for that link, Darin. I did try that out yesterday, but I can't seem to get the *.vsix file to load into the extension manager. It says I don't have the right program to load that file type. I extracted the manifest file from the vsix file and even added my edition, and still nothing.
Should I just succomb to having to add a separate test class library project manually and rewrite all of the basic unit tests and just work off of that? I guess that would be fine, I would just like to have seen the test framework get wired into MVC 3.
@Shark, indeed, it doesn't work with VWD 2010 as it doesn't support extensions.
Darin, ok that's all I needed to hear. Thanks for the help!
@Shark, no, I don't use NUnit. I use mainly MSTest or XUnit (for open source projects where I don't have VS edition which supports MSTest). But NUnit is a very good unit testing framework that I have used in the past. Personally I don't think that the unit test framework that you are using matters that much.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.