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.
To add support for NUnit to your build you need to follow a few simple steps:
- Make sure NUnit is installed on your build server.
- Unzip the files from the download and add them to source control in the same folder as your TFSBuild.proj
- Update the NUnitTFS.exe.config file to point to your TFS server
- 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)
- 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
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 :-)