abatishchev
abatishchev

Reputation: 100366

Is it possible to integrate NUnit into Visual Studio 2010?

When I create a ASP.NET MVC web application in Visual Studio 2010 it offers also to create a testing project using one of framework from the list.

But I have only VS built-in testing framework in it.

Is it possible to add NUnit there?

Upvotes: 13

Views: 3547

Answers (6)

Tim Barrass
Tim Barrass

Reputation: 4939

Also, as no-one's mentioned it, there's NCrunch.

Upvotes: 0

Tomas Walek
Tomas Walek

Reputation: 2544

You can use Testdriven.net plugin for Visual Studio which gives you the opportunity to run NUnit tests directly from your test project.

Upvotes: 0

Tony O'Hagan
Tony O'Hagan

Reputation: 22738

I'd recommend the ReSharper suite of VS.NET integrated tools that includes an excellent NUnit runner. ReSharper is a commercial product but well worth the money and standard issue for our development team.

(I have no commercial interest in JetBrains - just a happy customer)

Upvotes: 1

Tony O'Hagan
Tony O'Hagan

Reputation: 22738

Here's another tool to do this: NUnit for VS. I've not yet used it:

This add-in for Visual Studio Team System will allow you to run NUnit tests just like Visual Studio Unit tests integrated in Visual Studio. It makes Visual Studio to see NUnit test as mstest. That means everything you can do with Visual Studio Unit tests you can also do with NUnit tests. For example publishing of results in TFS or code coverage.

Upvotes: 2

Darin Dimitrov
Darin Dimitrov

Reputation: 1039508

You may follow the directions in this article. If you don't care about the template, just select No when asked about creating a test project and later add it manually to the solution.

Upvotes: 1

Related Questions