Unit testing resources and articles for Visual Studio 2012 and 2013
By terje
The last year I have written three blog posts for the Microsoft MSDN ALM blog on unit testing. The posts focused on the new test explorer with its abilities to run tests in multiple frameworks, and utilizing traits to filter what to run, both in Visual Studio and on TFS Build. I covered the adapters for NUnit, XUnit and Chutzpah.
Part 2–Using Traits with different test frameworks in the Unit Test Explorer
The adapters can be installed either into Visual Studio using a Visual Studio Extension, or added to your solution using an adapter delivered through NuGet. At the time of writing only NUnit offers the NuGet adapter. The advantage of using a NuGet based adapter is that it follows the solution, so it will just work for any developer regardless of that developer has installed the adapter or not. It will also work directly on a TFS server, either on-premise or the TF Service.
If you use non-NuGet adapter, the content of the adapter must be added to the TFS Server custom build activities folder. This is described in Part 3 (above). Grab a readymade zip with this content.
Part 3 also describes how to get the NUnit NuGet adapters – there are two variants – and how to choose between them.
NuGet Quick Access: Search for “NUnit TestAdapter”. Note: You need only one per solution
Setting up NuGet correctly in your solution is described in this NuGet Setup Inmeta Knowledge Article
If you choose to go the extensions road, they are found at
Chutzpah Test Adapter Extension (covering QUnit and Jasmine for Javascript testing)
Some other useful articles
Visual Studio 2012 RC – What’s new in Unit Testing
Windows Phone Unit Tests in Visual Studio 2012 Update 2
Visual Studio Unit Test Generator v1 “lands”
What's New in Visual Studio 11 Beta Unit Testing
Visual Studio 11 Beta - Unit Testing Plugins List