Executing NUnit Tests using the Visual Studio 2012 Test Runner

Posted by David Paquette on Geeks with Blogs See other posts from Geeks with Blogs or by David Paquette
Published on Fri, 19 Oct 2012 12:37:23 GMT Indexed on 2012/10/22 11:02 UTC
Read the original article Hit count: 312

Filed under:

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.

© Geeks with Blogs or respective owner