Terje Sandstrom

------ Visual Studio ALM MVP ----- (also see new blog at http://hermit.no)

  Home  |   Contact  |   Syndication    |   Login
  64 Posts | 1 Stories | 116 Comments | 0 Trackbacks

News

Subscribe

Delicious Save this on Delicious Visual Studio Feeds

¨

Tag Cloud


Archives

Post Categories

Company stuff

Interesting bloggers

Interesting companies

Microsoft

Microsoft Norge

Microsoft Regional Directors

Microsoft Test

MSFT Blogs

MVP

NNUG

Other interesting stuff

TFS

Visual Studio

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.

 

How to manage unit tests in Visual Studio 2012 Update 1 : Part 1–Using Traits in the Unit Test Explorer

Part 2–Using Traits with different test frameworks in the Unit Test Explorer

Part 3: Unit testing with Traits and code coverage in Visual Studio 2012 using the TFS Build – and the new NuGet adapter approach

 

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

NUnit Test Adapter Extension

XUnit Test Adapter Extension

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

 

or search for more here.

posted on Friday, September 20, 2013 5:55 PM