Geeks With Blogs
David Paquette CDD (Caffeine Driven Development)

At a recent Visual Studio 2012 event at the Calgary .NET User Group, I was told that I could run my NUnit tests directly in the Visual Studio 2012 without any special plugins.  Naturally, I was very excited and I immediately tried running my NUnit tests. I was somewhat disappointed to see that the Test Runner did not discover any of my NUnit tests. 

Apparently, you do still need to install an extension that supports NUnit.  Microsoft has completely re-written the Test Runner in Visual Studio 2012 and opened it up for anyone to write Test Adapters for any unit test framework (not just MSTest).  Once the correct test adapters are installed, everything works great.  Luckily, there are a good number of adapters already written.

Here are some Test Adapters that you might find useful:

Overall, I still prefer the unit test runner in ReSharper, but this is a great new feature for those who might not have a ReSharper license.

Posted on Friday, October 19, 2012 1:37 AM VS2012 , Unit Testing | Back to top

Comments on this post: Executing NUnit Tests using the Visual Studio 2012 Test Runner

# re: Executing NUnit Tests using the Visual Studio 2012 Test Runner
Requesting Gravatar...
Hi Dave,

CDD is pretty funny. I am doing QA automation using Eclipse IDE with Junit/Java/WebDriver. I need to use Visual Studio 2012 to create and execute my automated tests. I have VS 2012 and NUnit. Being new to C# and .Net, not sure where to begin.


H. Assous
Left by Hamid Assous on Mar 27, 2014 3:09 AM

Your comment:
 (will show your gravatar)

Copyright © David Paquette | Powered by: