<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>nunit4teambuild Wiki &amp; Documentation Rss Feed</title><link>http://www.codeplex.com/nunit4teambuild/Wiki/View.aspx?title=Home</link><description>nunit4teambuild Wiki Rss Description</description><item><title>Updated Wiki: Home</title><link>http://nunit4teambuild.codeplex.com/wikipage?version=16</link><description>&lt;div class="wikidoc"&gt;&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;Add support for NUnit to TFS 2008 &amp;#38; 2010 Team Build so that your NUnit test results are visible in the build log and incorporated into the data warehouse for reporting.&lt;br /&gt;&lt;br /&gt;Great for teams with an existing investment in NUnit tests, or those who prefer NUnit over other testing frameworks.&lt;br /&gt;
&lt;h2&gt;Update&lt;/h2&gt;
In case it&amp;#39;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 &amp;quot;done&amp;quot;.&lt;br /&gt;&lt;br /&gt;There won&amp;#39;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&amp;#39;t expect any new features or functionality.&lt;br /&gt;&lt;br /&gt;Thnks for all the support this project has recieved over the years!&lt;br /&gt;
&lt;hr /&gt;
&lt;h2&gt;Quick Start Guide&lt;/h2&gt;
To add support for NUnit to your build you need to follow a few simple steps:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Make sure NUnit is installed on your build server.&lt;/li&gt;
&lt;li&gt;Unzip the files from the download and add them to source control in the same folder as your TFSBuild.proj&lt;/li&gt;
&lt;li&gt;Update the NUnitTFS.exe.config file to point to your TFS server&lt;/li&gt;
&lt;li&gt;Change your build script to run NUnit and then call the NUnitTFS utility (see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=sample%20script&amp;referringTitle=Home"&gt;sample script&lt;/a&gt; for an idea of how this is done)&lt;/li&gt;
&lt;li&gt;Run your build!&lt;/li&gt;&lt;/ol&gt;
&lt;br /&gt;If it&amp;#39;s all set up correctly the next time you build you should see your build logs looking something like this:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://lh5.ggpht.com/rbanks54/SFefrLCp_ZI/AAAAAAAAAYU/-RyT9aOqaVU/clip_image004_thumb4.jpg?imgmax=800" /&gt;&lt;br /&gt;&lt;br /&gt;If you follow the sample script you&amp;#39;ll also need to make sure you have the &lt;a href="http://msbuildtasks.tigris.org/"&gt;The MSBuild Community Tasks&lt;/a&gt; installed on your build server.&lt;br /&gt;&lt;br /&gt;Version 1.0 required MSTest to be installed for publishing test results, but this is no longer a requirement as of version 1.1.&lt;br /&gt;&lt;br /&gt;This release has been tested with &lt;a href="http://www.nunit.org"&gt;NUnit&lt;/a&gt; 2.4.7, 2.4.8 and 2.5.2.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://nunit4teambuild.codeplex.com/workitem/6390"&gt;Support for TFS 2010&lt;/a&gt; has been added with &lt;a href="http://nunit4teambuild.codeplex.com/releases/view/45765"&gt;version 2.0&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;For information on TFS2008 integration see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=developer%20notes&amp;referringTitle=Home"&gt;developer notes&lt;/a&gt; and &lt;a href="http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server"&gt;http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;For integration with TFS2010 Team Build have a look at this &lt;a href="http://www.heikura.info/publish-nunit-test-results-as-part-of-team-build-in-team-foundation-server-2010"&gt;great post at heikura.info&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;UPDATE 25-Apr-2012: Source code converted to git to enable better collaboration.  Feel free to submit  your pull requests  :-)&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>rbanks54</author><pubDate>Wed, 20 Feb 2013 04:46:31 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20130220044631A</guid></item><item><title>Updated Wiki: Home</title><link>http://nunit4teambuild.codeplex.com/wikipage?version=15</link><description>&lt;div class="wikidoc"&gt;&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;Add support for NUnit to TFS 2008 &amp;#38; 2010 Team Build so that your NUnit test results are visible in the build log and incorporated into the data warehouse for reporting.&lt;br /&gt;&lt;br /&gt;Great for teams with an existing investment in NUnit tests, or those who prefer NUnit over other testing frameworks.&lt;br /&gt;&lt;br /&gt;To add support for NUnit to your build you need to follow a few simple steps:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Make sure NUnit is installed on your build server.&lt;/li&gt;
&lt;li&gt;Unzip the files from the download and add them to source control in the same folder as your TFSBuild.proj&lt;/li&gt;
&lt;li&gt;Update the NUnitTFS.exe.config file to point to your TFS server&lt;/li&gt;
&lt;li&gt;Change your build script to run NUnit and then call the NUnitTFS utility (see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=sample%20script&amp;referringTitle=Home"&gt;sample script&lt;/a&gt; for an idea of how this is done)&lt;/li&gt;
&lt;li&gt;Run your build!&lt;/li&gt;&lt;/ol&gt;
&lt;br /&gt;If it&amp;#39;s all set up correctly the next time you build you should see your build logs looking something like this:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://lh5.ggpht.com/rbanks54/SFefrLCp_ZI/AAAAAAAAAYU/-RyT9aOqaVU/clip_image004_thumb4.jpg?imgmax=800" /&gt;&lt;br /&gt;&lt;br /&gt;If you follow the sample script you&amp;#39;ll also need to make sure you have the &lt;a href="http://msbuildtasks.tigris.org/"&gt;The MSBuild Community Tasks&lt;/a&gt; installed on your build server.&lt;br /&gt;&lt;br /&gt;Version 1.0 required MSTest to be installed for publishing test results, but this is no longer a requirement as of version 1.1.&lt;br /&gt;&lt;br /&gt;This release has been tested with &lt;a href="http://www.nunit.org"&gt;NUnit&lt;/a&gt; 2.4.7, 2.4.8 and 2.5.2.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://nunit4teambuild.codeplex.com/workitem/6390"&gt;Support for TFS 2010&lt;/a&gt; has been added with &lt;a href="http://nunit4teambuild.codeplex.com/releases/view/45765"&gt;version 2.0&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;For information on TFS2008 integration see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=developer%20notes&amp;referringTitle=Home"&gt;developer notes&lt;/a&gt; and &lt;a href="http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server"&gt;http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;For integration with TFS2010 Team Build have a look at this &lt;a href="http://www.heikura.info/publish-nunit-test-results-as-part-of-team-build-in-team-foundation-server-2010"&gt;great post at heikura.info&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;UPDATE 25-Apr-2012: Source code converted to git to enable better collaboration.  Feel free to submit  your pull requests  :-)&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>rbanks54</author><pubDate>Tue, 24 Jul 2012 04:36:15 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20120724043615A</guid></item><item><title>Updated Wiki: Home</title><link>http://nunit4teambuild.codeplex.com/wikipage?version=14</link><description>&lt;div class="wikidoc"&gt;&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;Add support for NUnit to TFS 2008&amp;#39;s Team Build so that your NUnit test results are visible in the build log and incorporated into the data warehouse for reporting.&lt;br /&gt;&lt;br /&gt;Great for teams with an existing investment in NUnit tests, or those who prefer NUnit over other testing frameworks.&lt;br /&gt;&lt;br /&gt;To add support for NUnit to your build you need to follow a few simple steps:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Make sure NUnit is installed on your build server.&lt;/li&gt;
&lt;li&gt;Unzip the files from the download and add them to source control in the same folder as your TFSBuild.proj&lt;/li&gt;
&lt;li&gt;Update the NUnitTFS.exe.config file to point to your TFS server&lt;/li&gt;
&lt;li&gt;Change your build script to run NUnit and then call the NUnitTFS utility (see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=sample%20script&amp;referringTitle=Home"&gt;sample script&lt;/a&gt; for an idea of how this is done)&lt;/li&gt;
&lt;li&gt;Run your build!&lt;/li&gt;&lt;/ol&gt;
&lt;br /&gt;If it&amp;#39;s all set up correctly the next time you build you should see your build logs looking something like this:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://lh5.ggpht.com/rbanks54/SFefrLCp_ZI/AAAAAAAAAYU/-RyT9aOqaVU/clip_image004_thumb4.jpg?imgmax=800" /&gt;&lt;br /&gt;&lt;br /&gt;If you follow the sample script you&amp;#39;ll also need to make sure you have the &lt;a href="http://msbuildtasks.tigris.org/"&gt;The MSBuild Community Tasks&lt;/a&gt; installed on your build server.&lt;br /&gt;&lt;br /&gt;Version 1.0 required MSTest to be installed for publishing test results, but this is no longer a requirement as of version 1.1.&lt;br /&gt;&lt;br /&gt;This release has been tested with &lt;a href="http://www.nunit.org"&gt;NUnit&lt;/a&gt; 2.4.7, 2.4.8 and 2.5.2.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://nunit4teambuild.codeplex.com/workitem/6390"&gt;Support for TFS 2010&lt;/a&gt; has been added with &lt;a href="http://nunit4teambuild.codeplex.com/releases/view/45765"&gt;version 2.0&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;For information on TFS2008 integration see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=developer%20notes&amp;referringTitle=Home"&gt;developer notes&lt;/a&gt; and &lt;a href="http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server"&gt;http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;For integration with TFS2010 Team Build have a look at this &lt;a href="http://www.heikura.info/blog/publish-nunit-test-results-as-part-of-team-build-in-team-foundation-server-2010"&gt;great post at heikura.info&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;UPDATE 25-Apr-2012: Source code converted to git to enable better collaboration.  Feel free to submit  your pull requests  :-)&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>rbanks54</author><pubDate>Wed, 25 Apr 2012 11:45:57 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20120425114557A</guid></item><item><title>New Comment on "Documentation"</title><link>http://nunit4teambuild.codeplex.com/documentation?&amp;ANCHOR#C21298</link><description>I&amp;#39;ve posted a step by step guide to implementing this on TFS 2010 - http&amp;#58;&amp;#47;&amp;#47;danderson00.blogspot.com&amp;#47;2011&amp;#47;10&amp;#47;running-nunit-tests-under-tfs-build.html.</description><author>danderson00</author><pubDate>Wed, 19 Oct 2011 03:32:32 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20111019033232A</guid></item><item><title>Updated Wiki: Home</title><link>http://nunit4teambuild.codeplex.com/wikipage?version=13</link><description>&lt;div class="wikidoc"&gt;&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;Add support for NUnit to TFS 2008&amp;#39;s Team Build so that your NUnit test results are visible in the build log and incorporated into the data warehouse for reporting.&lt;br /&gt;&lt;br /&gt;Great for teams with an existing investment in NUnit tests, or those who prefer NUnit over other testing frameworks.&lt;br /&gt;&lt;br /&gt;To add support for NUnit to your build you need to follow a few simple steps:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Make sure NUnit is installed on your build server.&lt;/li&gt;
&lt;li&gt;Unzip the files from the download and add them to source control in the same folder as your TFSBuild.proj&lt;/li&gt;
&lt;li&gt;Update the NUnitTFS.exe.config file to point to your TFS server&lt;/li&gt;
&lt;li&gt;Change your build script to run NUnit and then call the NUnitTFS utility (see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=sample%20script&amp;referringTitle=Home"&gt;sample script&lt;/a&gt; for an idea of how this is done)&lt;/li&gt;
&lt;li&gt;Run your build!&lt;/li&gt;&lt;/ol&gt;
&lt;br /&gt;If it&amp;#39;s all set up correctly the next time you build you should see your build logs looking something like this:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://lh5.ggpht.com/rbanks54/SFefrLCp_ZI/AAAAAAAAAYU/-RyT9aOqaVU/clip_image004_thumb4.jpg?imgmax=800" /&gt;&lt;br /&gt;&lt;br /&gt;If you follow the sample script you&amp;#39;ll also need to make sure you have the &lt;a href="http://msbuildtasks.tigris.org/" class="externalLink"&gt;The MSBuild Community Tasks&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; installed on your build server.&lt;br /&gt;&lt;br /&gt;Version 1.0 required MSTest to be installed for publishing test results, but this is no longer a requirement as of version 1.1.&lt;br /&gt;&lt;br /&gt;This release has been tested with &lt;a href="http://www.nunit.org" class="externalLink"&gt;NUnit&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; 2.4.7, 2.4.8 and 2.5.2.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://nunit4teambuild.codeplex.com/workitem/6390"&gt;Support for TFS 2010&lt;/a&gt; has been added with &lt;a href="http://nunit4teambuild.codeplex.com/releases/view/45765"&gt;version 2.0&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;For information on TFS2008 integration see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=developer%20notes&amp;referringTitle=Home"&gt;developer notes&lt;/a&gt; and &lt;a href="http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server" class="externalLink"&gt;http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;For integration with TFS2010 Team Build have a look at this &lt;a href="http://www.heikura.info/blog/publish-nunit-test-results-as-part-of-team-build-in-team-foundation-server-2010" class="externalLink"&gt;great post at heikura.info&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>rbanks54</author><pubDate>Fri, 19 Nov 2010 00:55:31 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20101119125531A</guid></item><item><title>Updated Wiki: Home</title><link>http://nunit4teambuild.codeplex.com/wikipage?version=12</link><description>&lt;div class="wikidoc"&gt;&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;Add support for NUnit to TFS 2008&amp;#39;s Team Build so that your NUnit test results are visible in the build log and incorporated into the data warehouse for reporting.&lt;br /&gt;&lt;br /&gt;Great for teams with an existing investment in NUnit tests, or those who prefer NUnit over other testing frameworks.&lt;br /&gt;&lt;br /&gt;To add support for NUnit to your build you need to follow a few simple steps:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Make sure NUnit is installed on your build server.&lt;/li&gt;
&lt;li&gt;Unzip the files from the download and add them to source control in the same folder as your TFSBuild.proj&lt;/li&gt;
&lt;li&gt;Update the NUnitTFS.exe.config file to point to your TFS server&lt;/li&gt;
&lt;li&gt;Change your build script to run NUnit and then call the NUnitTFS utility (see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=sample%20script&amp;referringTitle=Home"&gt;sample script&lt;/a&gt; for an idea of how this is done)&lt;/li&gt;
&lt;li&gt;Run your build!&lt;/li&gt;&lt;/ol&gt;
&lt;br /&gt;If it&amp;#39;s all set up correctly the next time you build you should see your build logs looking something like this:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://lh5.ggpht.com/rbanks54/SFefrLCp_ZI/AAAAAAAAAYU/-RyT9aOqaVU/clip_image004_thumb4.jpg?imgmax=800" /&gt;&lt;br /&gt;&lt;br /&gt;If you follow the sample script you&amp;#39;ll also need to make sure you have the &lt;a href="http://msbuildtasks.tigris.org/" class="externalLink"&gt;The MSBuild Community Tasks&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; installed on your build server.&lt;br /&gt;&lt;br /&gt;Version 1.0 required MSTest to be installed for publishing test results, but this is no longer a requirement as of version 1.1.&lt;br /&gt;&lt;br /&gt;This release has been tested with &lt;a href="http://www.nunit.org" class="externalLink"&gt;NUnit&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; 2.4.7, 2.4.8 and 2.5.2.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://nunit4teambuild.codeplex.com/workitem/6390"&gt;Support for TFS 2010&lt;/a&gt; has been added with &lt;a href="http://nunit4teambuild.codeplex.com/releases/view/45765"&gt;version 2.0&lt;/a&gt; but it is still at the alpha stage.&lt;br /&gt;&lt;br /&gt;For more information see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=developer%20notes&amp;referringTitle=Home"&gt;developer notes&lt;/a&gt; and &lt;a href="http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server" class="externalLink"&gt;http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;For steps to integrate with TFS2010 Team Build have a look at this &lt;a href="http://www.heikura.info/blog/publish-nunit-test-results-as-part-of-team-build-in-team-foundation-server-2010" class="externalLink"&gt;great post at heikura.info&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>rbanks54</author><pubDate>Fri, 19 Nov 2010 00:54:50 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20101119125450A</guid></item><item><title>Updated Wiki: How it works</title><link>http://nunit4teambuild.codeplex.com/wikipage?title=How it works&amp;version=5</link><description>&lt;div class="wikidoc"&gt;&lt;h2&gt;TFS 2008&lt;/h2&gt;
The basic process NUnitTFS follows for TFS 2008 runs thus:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;b&gt;Transform NUnit output&lt;/b&gt;. An XSL transform is used to take the output from NUnit and transform it into MSTest&amp;#39;s .trx format. This transformation generates a unique ID on the root attribute known as the run ID.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Add build information to .trx&lt;/b&gt;. An XML element called &amp;lt;Build&amp;gt; is added to the .trx file after the &amp;lt;Times&amp;gt; element. This has two attributes, flavor and platform, that contain details about the build.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Retrieve build ID from TFS&lt;/b&gt;. A call to the QueryBuilds method on the TFS&amp;#39;s BuildServiceV2 web service is made to retrieve details about the build. From the returned information the unique ID for the build is extracted.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Retrieve the publish service version&lt;/b&gt;. A call to the GetVersion method on TFS&amp;#39;s PublishTestResultsBuildService2V1 web service. Note that this version isn&amp;#39;t used anywhere! The MSTest executable peformed this call when publishing test results so I thought I NUnitTFS had better do it too...&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Call PrepareToPublish&lt;/b&gt;. The PrepareToPublish method on TFS&amp;#39;s PublishTestResultsBuildService2V1 web service is called. We pass the build ID and run ID and TFS returns a directory (on the TFS server) to save the .trx file to.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Save the .trx file&lt;/b&gt;. The .trx file is saved in the directory TFS gave us. The name can be specified by the -outputFile command line parameter; the default value is NUnitOutput.trx.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Call PublishRun&lt;/b&gt;. The PublishRun method on TFS&amp;#39;s PublishTestResultsBuildService2V1 web service is called. We pass the build ID, run ID and name of the file we&amp;#39;ve saved. TFS then grabs the file and imports it. If something goes wrong at this stage you&amp;#39;ll normally get the incredibly helpful &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=Publish_GeneralFailure&amp;referringTitle=How%20it%20works"&gt;Publish_GeneralFailure&lt;/a&gt; error.&lt;/li&gt;&lt;/ol&gt;

&lt;h2&gt;TFS 2010&lt;/h2&gt;
The process has changed massively with TFS 2010. The main difference is that there is no copying files around the network; files are uploaded via a web request, which is much nicer. It also now seems to be the case that an XML file has to be uploaded &lt;i&gt;for each test&lt;/i&gt;, which isn&amp;#39;t ideal...&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;b&gt;Transform NUnit output&lt;/b&gt;. An XSL transform is used to take the output from NUnit and transform it into MSTest&amp;#39;s .trx format. This transformation generates a unique ID on the root attribute known as the run ID. Whilst TFS 2010 has a more &amp;#39;objecty&amp;#39; approach (i.e. there is a lot more passing of details via SOAP objects) the code interally still works from this .trx file. This is so you can transform the NUnit (or other test framwork!) output however you want using the -x command line switch and a custom XSLT yet still get the file uploading.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Add build information to .trx&lt;/b&gt;. An XML element called &amp;lt;Build&amp;gt; is added to the .trx file after the &amp;lt;Times&amp;gt; element. This has two attributes, flavor and platform, that contain details about the build.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Retrieve build information from TFS&lt;/b&gt;. A call to the QueryBuilds method on the BuildServiceV3 web service (/Build/v3.0/BuildService.asmx) is made to retrieve details about the build. From the returned information we use the build&amp;#39;s URI to link test runs to it.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Check test run doesn&amp;#39;t exist&lt;/b&gt;. We now check that the test run doesn&amp;#39;t already exist via a call to the QueryTestRunByTmiRunId method of the TestResults web service, (/TestManagement/v1.0/TestResults.asmx) passing in the run ID.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Get current user&amp;#39;s details&lt;/b&gt;. Test runs have to be associated with a user so we make a call to the ReadIdentities method of the IdentityManagementServiceV3 web service (/Services/v3.0/IdentityManagementService.asmx) to get the TeamFoundationId for the current user. (i.e. whatever user your build server is running as)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Create test run&lt;/b&gt;. A test run is now created with a call to the CreateTestRun method on the TestResults web service. This is initially created with few details and a state of NotStarted.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Create test results&lt;/b&gt;. Basic details of the tests are pulled out of the .trx and test results are created for the run with a call to the CreateTestResults method of the TestResults web service.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Update test run with TMI run and assemblies&lt;/b&gt;. TFS 2010 requires an XML file called tmiRun.tr&lt;i&gt; to be uploaded an attached to the test run, along with the assemblies being tested. tmiRun.tr&lt;/i&gt; is a stripped down version of the .trx file with the &amp;lt;TestDefinitions&amp;gt; and &amp;lt;Results&amp;gt; elements removed. We make a call to the UpdateTestRun method of the TestResults service, updating the state of the test run to InProgress and giving details of the files to be uploaded. We are given a series of attachment IDs in return. We then upload each attachment by POSTing the file to the file upload handler (/TestManagement/v1.0/AttachmentUpload.ashx) passing the test run details and attachment ID in the form data.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Update test results with details and tmiResult.tr&lt;i&gt;&lt;/b&gt;. We then make a call to the UpdateTestResults method of the TestResults service, updating each test result to a state of Completed and including the outcome plus and error messages. We also give details of an attachment &lt;/i&gt;for each result&lt;i&gt;, tmiResult.tr&lt;/i&gt;, which is another stripped down version of the .trx containing just the &amp;lt;TestDefinitions&amp;gt; and &amp;lt;Results&amp;gt; elements for that test result. TFS returns us some attachment IDs which we then use to upload all the tmiResult.tr_ files via the file upload handler.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>MrKWatkins</author><pubDate>Sun, 23 May 2010 18:01:24 GMT</pubDate><guid isPermaLink="false">Updated Wiki: How it works 20100523060124P</guid></item><item><title>Updated Wiki: How it works</title><link>http://nunit4teambuild.codeplex.com/wikipage?title=How it works&amp;version=4</link><description>&lt;div class="wikidoc"&gt;&lt;h2&gt;TFS 2008&lt;/h2&gt;
The basic process NUnitTFS follows for TFS 2008 runs thus:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;b&gt;Transform NUnit output&lt;/b&gt;. An XSL transform is used to take the output from NUnit and transform it into MSTest&amp;#39;s .trx format. This transformation generates a unique ID on the root attribute known as the run ID.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Add build information to .trx&lt;/b&gt;. An XML element called &amp;lt;Build&amp;gt; is added to the .trx file after the &amp;lt;Times&amp;gt; element. This has two attributes, flavor and platform, that contain details about the build.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Retrieve build ID from TFS&lt;/b&gt;. A call to the QueryBuilds method on the TFS&amp;#39;s BuildServiceV2 web service is made to retrieve details about the build. From the returned information the unique ID for the build is extracted.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Retrieve the publish service version&lt;/b&gt;. A call to the GetVersion method on TFS&amp;#39;s PublishTestResultsBuildService2V1 web service. Note that this version isn&amp;#39;t used anywhere! The MSTest executable peformed this call when publishing test results so I thought I NUnitTFS had better do it too...&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Call PrepareToPublish&lt;/b&gt;. The PrepareToPublish method on TFS&amp;#39;s PublishTestResultsBuildService2V1 web service is called. We pass the build ID and run ID and TFS returns a directory (on the TFS server) to save the .trx file to.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Save the .trx file&lt;/b&gt;. The .trx file is saved in the directory TFS gave us. The name can be specified by the -outputFile command line parameter; the default value is NUnitOutput.trx.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Call PublishRun&lt;/b&gt;. The PublishRun method on TFS&amp;#39;s PublishTestResultsBuildService2V1 web service is called. We pass the build ID, run ID and name of the file we&amp;#39;ve saved. TFS then grabs the file and imports it. If something goes wrong at this stage you&amp;#39;ll normally get the incredibly helpful &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=Publish_GeneralFailure&amp;referringTitle=How%20it%20works"&gt;Publish_GeneralFailure&lt;/a&gt; error.&lt;/li&gt;&lt;/ol&gt;

&lt;h2&gt;TFS 2010&lt;/h2&gt;
The process has changed massively with TFS 2010. The main difference is that there is no copying files around the network; files are uploaded via a web request, which is much nicer. It also now seems to be the case that an XML file has to be uploaded &lt;i&gt;for each test&lt;/i&gt;, which isn&amp;#39;t ideal...&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;b&gt;Transform NUnit output&lt;/b&gt;. An XSL transform is used to take the output from NUnit and transform it into MSTest&amp;#39;s .trx format. This transformation generates a unique ID on the root attribute known as the run ID.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Add build information to .trx&lt;/b&gt;. An XML element called &amp;lt;Build&amp;gt; is added to the .trx file after the &amp;lt;Times&amp;gt; element. This has two attributes, flavor and platform, that contain details about the build.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Retrieve build information from TFS&lt;/b&gt;. A call to the QueryBuilds method on the BuildServiceV3 web service (/Build/v3.0/BuildService.asmx) is made to retrieve details about the build. From the returned information we use the build&amp;#39;s URI to link test runs to it.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Check test run doesn&amp;#39;t exist&lt;/b&gt;. We now check that the test run doesn&amp;#39;t already exist via a call to the QueryTestRunByTmiRunId method of the TestResults web service, (/TestManagement/v1.0/TestResults.asmx) passing in the run ID.&lt;/li&gt;&lt;/ol&gt;
&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>MrKWatkins</author><pubDate>Sun, 23 May 2010 17:43:57 GMT</pubDate><guid isPermaLink="false">Updated Wiki: How it works 20100523054357P</guid></item><item><title>Updated Wiki: Home</title><link>http://nunit4teambuild.codeplex.com/wikipage?version=11</link><description>&lt;div class="wikidoc"&gt;&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;Add support for NUnit to TFS 2008&amp;#39;s Team Build so that your NUnit test results are visible in the build log and incorporated into the data warehouse for reporting.&lt;br /&gt;&lt;br /&gt;Great for teams with an existing investment in NUnit tests, or those who prefer NUnit over other testing frameworks.&lt;br /&gt;&lt;br /&gt;To add support for NUnit to your build you need to follow a few simple steps:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Make sure NUnit is installed on your build server.&lt;/li&gt;
&lt;li&gt;Unzip the files from the download and add them to source control in the same folder as your TFSBuild.proj&lt;/li&gt;
&lt;li&gt;Update the NUnitTFS.exe.config file to point to your TFS server&lt;/li&gt;
&lt;li&gt;Change your build script to run NUnit and then call the NUnitTFS utility (see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=sample%20script&amp;referringTitle=Home"&gt;sample script&lt;/a&gt; for an idea of how this is done)&lt;/li&gt;
&lt;li&gt;Run your build!&lt;/li&gt;&lt;/ol&gt;
&lt;br /&gt;If it&amp;#39;s all set up correctly the next time you build you should see your build logs looking something like this:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://lh5.ggpht.com/rbanks54/SFefrLCp_ZI/AAAAAAAAAYU/-RyT9aOqaVU/clip_image004_thumb4.jpg?imgmax=800" /&gt;&lt;br /&gt;&lt;br /&gt;If you follow the sample script you&amp;#39;ll also need to make sure you have the &lt;a href="http://msbuildtasks.tigris.org/" class="externalLink"&gt;The MSBuild Community Tasks&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; installed on your build server.&lt;br /&gt;&lt;br /&gt;Version 1.0 required MSTest to be installed for publishing test results, but this is no longer a requirement as of version 1.1.&lt;br /&gt;&lt;br /&gt;This release has been tested with &lt;a href="http://www.nunit.org" class="externalLink"&gt;NUnit&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; 2.4.7, 2.4.8 and 2.5.2.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://nunit4teambuild.codeplex.com/WorkItem/View.aspx?WorkItemId=6390"&gt;Support for TFS 2010&lt;/a&gt; has been added with &lt;a href="http://nunit4teambuild.codeplex.com/releases/view/45765"&gt;version 2.0&lt;/a&gt; but it is still at the alpha stage.&lt;br /&gt;&lt;br /&gt;For more information see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=developer%20notes&amp;referringTitle=Home"&gt;developer notes&lt;/a&gt; and &lt;a href="http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server" class="externalLink"&gt;http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>MrKWatkins</author><pubDate>Sun, 23 May 2010 17:34:28 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20100523053428P</guid></item><item><title>Updated Wiki: Home</title><link>http://nunit4teambuild.codeplex.com/wikipage?version=10</link><description>&lt;div class="wikidoc"&gt;&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;Add support for NUnit to TFS 2008&amp;#39;s Team Build so that your NUnit test results are visible in the build log and incorporated into the data warehouse for reporting.&lt;br /&gt;&lt;br /&gt;Great for teams with an existing investment in NUnit tests, or those who prefer NUnit over other testing frameworks.&lt;br /&gt;&lt;br /&gt;To add support for NUnit to your build you need to follow a few simple steps:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Make sure NUnit is installed on your build server.&lt;/li&gt;
&lt;li&gt;Unzip the files from the download and add them to source control in the same folder as your TFSBuild.proj&lt;/li&gt;
&lt;li&gt;Update the NUnitTFS.exe.config file to point to your TFS server&lt;/li&gt;
&lt;li&gt;Change your build script to run NUnit and then call the NUnitTFS utility (see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=sample%20script&amp;referringTitle=Home"&gt;sample script&lt;/a&gt; for an idea of how this is done)&lt;/li&gt;
&lt;li&gt;Run your build!&lt;/li&gt;&lt;/ol&gt;
&lt;br /&gt;If it&amp;#39;s all set up correctly the next time you build you should see your build logs looking something like this:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://lh5.ggpht.com/rbanks54/SFefrLCp_ZI/AAAAAAAAAYU/-RyT9aOqaVU/clip_image004_thumb4.jpg?imgmax=800" /&gt;&lt;br /&gt;&lt;br /&gt;If you follow the sample script you&amp;#39;ll also need to make sure you have the &lt;a href="http://msbuildtasks.tigris.org/" class="externalLink"&gt;The MSBuild Community Tasks&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; installed on your build server.&lt;br /&gt;&lt;br /&gt;Version 1.0 required MSTest to be installed for publishing test results, but this is no longer a requirement as of version 1.1.&lt;br /&gt;&lt;br /&gt;This release has been tested with &lt;a href="http://www.nunit.org" class="externalLink"&gt;NUnit&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; 2.4.7, 2.4.8 and 2.5.2.&lt;br /&gt;&lt;br /&gt;Note that NUnitTFS doesn&amp;#39;t currently work with TFS 2010! Support for TFS 2010 is &lt;a href="http://nunit4teambuild.codeplex.com/WorkItem/View.aspx?WorkItemId=6390"&gt;in progress&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;For more information see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=developer%20notes&amp;referringTitle=Home"&gt;developer notes&lt;/a&gt; and &lt;a href="http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server" class="externalLink"&gt;http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>MrKWatkins</author><pubDate>Mon, 03 May 2010 10:19:19 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20100503101919A</guid></item><item><title>Updated Wiki: Documentation</title><link>http://nunit4teambuild.codeplex.com/documentation?version=3</link><description>&lt;div class="wikidoc"&gt;You might find the following resources helpful:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=How%20it%20works&amp;referringTitle=Documentation"&gt;How it works&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=Sample%20script&amp;referringTitle=Documentation"&gt;Sample script&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>MrKWatkins</author><pubDate>Sun, 28 Feb 2010 14:55:49 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Documentation 20100228025549P</guid></item><item><title>Updated Wiki: Documentation</title><link>http://nunit4teambuild.codeplex.com/documentation?version=2</link><description>&lt;div class="wikidoc"&gt;You might find the following resources helpful if you&amp;#39;re having problems with NUnitTFS:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=How%20it%20works&amp;referringTitle=Documentation"&gt;How it works&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=Sample%20script&amp;referringTitle=Documentation"&gt;Sample script&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>MrKWatkins</author><pubDate>Sun, 28 Feb 2010 14:55:34 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Documentation 20100228025534P</guid></item><item><title>Updated Wiki: How it works</title><link>http://nunit4teambuild.codeplex.com/wikipage?title=How it works&amp;version=3</link><description>&lt;div class="wikidoc"&gt;The basic process NUnitTFS follows runs thus:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;b&gt;Transform NUnit output&lt;/b&gt;. An XSL transform is used to take the output from NUnit and transform it into MSTest&amp;#39;s .trx format. This transformation generates a unique ID on the root attribute known as the run ID.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Add build information to .trx&lt;/b&gt;. An XML element called &amp;lt;Build&amp;gt; is added to the .trx file after the &amp;lt;Times&amp;gt; element. This has two attributes, flavor and platform, that contain details about the build.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Retrieve build ID from TFS&lt;/b&gt;. A call to the QueryBuilds method on the TFS&amp;#39;s BuildServiceV2 web service is made to retrieve details about the build. From the returned information the unique ID for the build is extracted.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Retrieve the publish service version&lt;/b&gt;. A call to the GetVersion method on TFS&amp;#39;s PublishTestResultsBuildService2V1 web service. Note that this version isn&amp;#39;t used anywhere! The MSTest executable peformed this call when publishing test results so I thought I NUnitTFS had better do it too...&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Call PrepareToPublish&lt;/b&gt;. The PrepareToPublish method on TFS&amp;#39;s PublishTestResultsBuildService2V1 web service is called. We pass the build ID and run ID and TFS returns a directory (on the TFS server) to save the .trx file to.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Save the .trx file&lt;/b&gt;. The .trx file is saved in the directory TFS gave us. The name can be specified by the -outputFile command line parameter; the default value is NUnitOutput.trx.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Call PublishRun&lt;/b&gt;. The PublishRun method on TFS&amp;#39;s PublishTestResultsBuildService2V1 web service is called. We pass the build ID, run ID and name of the file we&amp;#39;ve saved. TFS then grabs the file and imports it. If something goes wrong at this stage you&amp;#39;ll normally get the incredibly helpful &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=Publish_GeneralFailure&amp;referringTitle=How%20it%20works"&gt;Publish_GeneralFailure&lt;/a&gt; error.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>MrKWatkins</author><pubDate>Sun, 28 Feb 2010 14:45:23 GMT</pubDate><guid isPermaLink="false">Updated Wiki: How it works 20100228024523P</guid></item><item><title>Updated Wiki: How it works</title><link>http://nunit4teambuild.codeplex.com/wikipage?title=How it works&amp;version=2</link><description>&lt;div class="wikidoc"&gt;The basic process NUnitTFS follows runs thus:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;b&gt;Transform NUnit output&lt;/b&gt;. An XSL transform is used to take the output from NUnit and transform it into MSTest&amp;#39;s .trx format.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Add build information to .trx&lt;/b&gt;. An XML element called &amp;lt;Build&amp;gt; is added to the .trx file after the &amp;lt;Times&amp;gt; element. This has two attributes, flavor and platform, that contain details about the build.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Retrieve build ID from TFS&lt;/b&gt;. A call to the QueryBuilds method on the TFS&amp;#39;s BuildServiceV2 web service is made to retrieve details about the build. From the returned information the unique ID for the build is extracted.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>MrKWatkins</author><pubDate>Sun, 28 Feb 2010 14:28:52 GMT</pubDate><guid isPermaLink="false">Updated Wiki: How it works 20100228022852P</guid></item><item><title>Updated Wiki: How it works</title><link>http://nunit4teambuild.codeplex.com/wikipage?title=How it works&amp;version=1</link><description>&lt;div class="wikidoc"&gt;The basic process NUnitTFS follows runs thus:&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>MrKWatkins</author><pubDate>Sun, 28 Feb 2010 14:16:11 GMT</pubDate><guid isPermaLink="false">Updated Wiki: How it works 20100228021611P</guid></item><item><title>Updated Wiki: Documentation</title><link>http://nunit4teambuild.codeplex.com/documentation?version=1</link><description>&lt;div class="wikidoc"&gt;You might find the following resources helpful if you&amp;#39;re having problems with NUnitTFS:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=How%20it%20works&amp;referringTitle=Documentation"&gt;How it works&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>MrKWatkins</author><pubDate>Sun, 28 Feb 2010 14:15:03 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Documentation 20100228021503P</guid></item><item><title>New Comment on "sample script"</title><link>http://nunit4teambuild.codeplex.com/wikipage?title=sample script&amp;ANCHOR#C14438</link><description>how to see the n-unit test results in the test report. i mean the names of the test passed&amp;#47;failed.</description><author>prasadrmarathe</author><pubDate>Wed, 16 Dec 2009 08:15:17 GMT</pubDate><guid isPermaLink="false">New Comment on "sample script" 20091216081517A</guid></item><item><title>New Comment on "developer notes"</title><link>http://nunit4teambuild.codeplex.com/wikipage?title=developer notes&amp;ANCHOR#C14437</link><description>how to see the n-unit test results in the test report. i mean the names of the test passed&amp;#47;failes.</description><author>prasadrmarathe</author><pubDate>Wed, 16 Dec 2009 07:57:08 GMT</pubDate><guid isPermaLink="false">New Comment on "developer notes" 20091216075708A</guid></item><item><title>Updated Wiki: Home</title><link>http://nunit4teambuild.codeplex.com/wikipage?version=9</link><description>&lt;div class="wikidoc"&gt;&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;Add support for NUnit to TFS 2008&amp;#39;s Team Build so that your NUnit test results are visible in the build log and incorporated into the data warehouse for reporting.&lt;br /&gt;&lt;br /&gt;Great for teams with an existing investment in NUnit tests, or those who prefer NUnit over other testing frameworks.&lt;br /&gt;&lt;br /&gt;To add support for NUnit to your build you need to follow a few simple steps:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Make sure NUnit is installed on your build server.&lt;/li&gt;
&lt;li&gt;Unzip the files from the download and add them to source control in the same folder as your TFSBuild.proj&lt;/li&gt;
&lt;li&gt;Update the NUnitTFS.exe.config file to point to your TFS server&lt;/li&gt;
&lt;li&gt;Change your build script to run NUnit and then call the NUnitTFS utility (see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=sample%20script&amp;referringTitle=Home"&gt;sample script&lt;/a&gt; for an idea of how this is done)&lt;/li&gt;
&lt;li&gt;Run your build!&lt;/li&gt;&lt;/ol&gt;
&lt;br /&gt;If it's all set up correctly the next time you build you should see your build logs looking something like this:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://lh5.ggpht.com/rbanks54/SFefrLCp_ZI/AAAAAAAAAYU/-RyT9aOqaVU/clip_image004_thumb4.jpg?imgmax=800" /&gt;&lt;br /&gt;&lt;br /&gt;If you follow the sample script you'll also need to make sure you have the &lt;a href="http://msbuildtasks.tigris.org/" class="externalLink"&gt;The MSBuild Community Tasks&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; installed on your build server.&lt;br /&gt;&lt;br /&gt;Version 1.0 required MSTest to be installed for publishing test results, but this is no longer a requirement as of version 1.1.&lt;br /&gt;&lt;br /&gt;This release has been tested with &lt;a href="http://www.nunit.org" class="externalLink"&gt;NUnit&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; 2.4.7, 2.4.8 and 2.5.2.&lt;br /&gt;&lt;br /&gt;For more information see the &lt;a href="http://nunit4teambuild.codeplex.com/wikipage?title=developer%20notes&amp;referringTitle=Home"&gt;developer notes&lt;/a&gt; and &lt;a href="http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server" class="externalLink"&gt;http://www.mrkwatkins.co.uk/Blog/2009/07/25/Making-NUnit-Play-Nicely-With-Team-Foundation-Server&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>MrKWatkins</author><pubDate>Sat, 28 Nov 2009 20:00:28 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20091128080028P</guid></item><item><title>Updated Wiki: sample script</title><link>http://nunit4teambuild.codeplex.com/Wiki/View.aspx?title=sample script&amp;version=5</link><description>&lt;div class="wikidoc"&gt;This is a sample script that you can include in your build process.  Note that the use of the &amp;lt;BuildStep&amp;gt; tasks are optional and you can remove those if you desire.&lt;br /&gt;&lt;br /&gt;      &amp;lt;Target Name=&amp;quot;AfterCompile&amp;quot;&amp;gt; &lt;br /&gt;            &amp;lt;!-- Create a Custom Build Step --&amp;gt;&lt;br /&gt;            &amp;lt;BuildStep TeamFoundationServerUrl=&amp;quot;$(TeamFoundationServerUrl)&amp;quot; BuildUri=&amp;quot;$(BuildUri)&amp;quot; Name=&amp;quot;NUnitTestStep&amp;quot; Message=&amp;quot;Running Nunit Tests&amp;quot;&amp;gt;&lt;br /&gt;                  &amp;lt;Output TaskParameter=&amp;quot;Id&amp;quot; PropertyName=&amp;quot;NUnitStepId&amp;quot; /&amp;gt;&lt;br /&gt;            &amp;lt;/BuildStep&amp;gt;&lt;br /&gt;            &lt;br /&gt;            &amp;lt;!-- Get Assemblies to test --&amp;gt;&lt;br /&gt;            &amp;lt;ItemGroup&amp;gt;&lt;br /&gt;                  &amp;lt;TestAssemblies Include=&amp;quot;$(OutDir)\**\cs-*.dll&amp;quot; /&amp;gt;&lt;br /&gt;            &amp;lt;/ItemGroup&amp;gt;&lt;br /&gt;            &lt;br /&gt;            &amp;lt;!-- Run NUnit and check the result --&amp;gt;&lt;br /&gt;            &amp;lt;NUnit ContinueOnError=&amp;quot;true&amp;quot; Assemblies=&amp;quot;@(TestAssemblies)&amp;quot; OutputXmlFile=&amp;quot;$(OutDir)nunit_results.xml&amp;quot; ToolPath=&amp;quot;$(ProgramFiles)\Nunit 2.4.7\bin\&amp;quot;&amp;gt;&lt;br /&gt;                  &amp;lt;Output TaskParameter=&amp;quot;ExitCode&amp;quot; PropertyName=&amp;quot;NUnitResult&amp;quot; /&amp;gt;&lt;br /&gt;            &amp;lt;/NUnit&amp;gt;&lt;br /&gt;            &amp;lt;BuildStep Condition=&amp;quot;'$(NUnitResult)'=='0'&amp;quot; TeamFoundationServerUrl=&amp;quot;$(TeamFoundationServerUrl)&amp;quot; BuildUri=&amp;quot;$(BuildUri)&amp;quot; Id=&amp;quot;$(NUnitStepId)&amp;quot; Status=&amp;quot;Succeeded&amp;quot; /&amp;gt;&lt;br /&gt;            &amp;lt;BuildStep Condition=&amp;quot;'$(NUnitResult)'!='0'&amp;quot; TeamFoundationServerUrl=&amp;quot;$(TeamFoundationServerUrl)&amp;quot; BuildUri=&amp;quot;$(BuildUri)&amp;quot; Id=&amp;quot;$(NUnitStepId)&amp;quot; Status=&amp;quot;Failed&amp;quot; /&amp;gt;&lt;br /&gt;&lt;br /&gt;            &amp;lt;!-- Regardless of NUnit success/failure upload the results to TFS. --&amp;gt;&lt;br /&gt;            		&amp;lt;Exec Command=&amp;quot;&amp;amp;quot;$(MSBuildProjectDirectory)\NUnitTFS.exe&amp;amp;quot; -n &amp;amp;quot;$(OutDir)nunit_results.xml&amp;amp;quot; -t &amp;amp;quot;$(TeamProject)&amp;amp;quot; -b &amp;amp;quot;$(BuildNumber)&amp;amp;quot; -f &amp;amp;quot;%(ConfigurationToBuild.FlavorToBuild)&amp;amp;quot; -p &amp;amp;quot;%(ConfigurationToBuild.PlatformToBuild)&amp;amp;quot; -x &amp;amp;quot;$(MSBuildProjectDirectory)\NUnitToMSTest.xslt&amp;amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;&lt;br /&gt;            &amp;lt;!-- If NUnit failed it's time to error out --&amp;gt;&lt;br /&gt;            &amp;lt;Error Condition=&amp;quot;'$(NUnitResult)'!='0'&amp;quot; Text=&amp;quot;Unit Tests Failed&amp;quot; /&amp;gt;&lt;br /&gt;      &amp;lt;/Target&amp;gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>MrKWatkins</author><pubDate>Wed, 05 Aug 2009 18:57:53 GMT</pubDate><guid isPermaLink="false">Updated Wiki: sample script 20090805065753P</guid></item></channel></rss>