Project Description
Add support for NUnit to TFS 2008 & 2010 Team Build so that your NUnit test results are visible in the build log and incorporated into the data warehouse for reporting.

Great for teams with an existing investment in NUnit tests, or those who prefer NUnit over other testing frameworks.

Update

In case it's not obvious, with the inclusion of the unit test adapters in Visual Studio 2012 and the ability to run those test adapters in the TFS2012 build engine this project is now considered as "done".

There won't be any updates for future versions of TFS and the code is considered stable for prior versions of TFS. Of course, pull requests will still be accepted if you find any problems in the code, but don't expect any new features or functionality.

Thnks for all the support this project has recieved over the years!

Quick Start Guide

To add support for NUnit to your build you need to follow a few simple steps:
  1. Make sure NUnit is installed on your build server.
  2. Unzip the files from the download and add them to source control in the same folder as your TFSBuild.proj
  3. Update the NUnitTFS.exe.config file to point to your TFS server
  4. Change your build script to run NUnit and then call the NUnitTFS utility (see the sample script for an idea of how this is done)
  5. Run your build!

If it's all set up correctly the next time you build you should see your build logs looking something like this:



If you follow the sample script you'll also need to make sure you have the The MSBuild Community Tasks installed on your build server.

Version 1.0 required MSTest to be installed for publishing test results, but this is no longer a requirement as of version 1.1.

This release has been tested with NUnit 2.4.7, 2.4.8 and 2.5.2.

Support for TFS 2010 has been added with version 2.0.

For information on TFS2008 integration see the developer notes and http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server.

For integration with TFS2010 Team Build have a look at this great post at heikura.info

UPDATE 25-Apr-2012: Source code converted to git to enable better collaboration. Feel free to submit your pull requests :-)

Last edited Feb 20, 2013 at 3:46 AM by rbanks54, version 16