### How do I see test results in CruiseControl.net?

If you're using CruiseControl.net for continuous integration services, you can see the unit test results for xUnit.net on the build summary page.

#### To install support for CCnet

• Configure the xUnit.net MSBuild task to output with the Xml= attribute, as shown below:
```<Project DefaultTargets="Test" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

AssemblyFile="xunit.runner.msbuild.dll"

<Target Name="Test">
<xunit Assembly="test.xunit\bin\Debug\test.xunit.dll" Xml="test.xunit.dll.xml"/>
</Target>

</Project>
```
• Edit your CCnet build task (in C:\Program Files\CruiseControl.NET\server\ccnet.config) to merge your XML files into the CCnet build ouput, as shown below:
```  <project>
<name>MyProject</name>
[...]
<publishers>
<merge>
<files>
<file>D:\Builds\MyProject\Test.*.xml</file>
</files>
</merge>
<xmllogger />
<statistics />
</publishers>
[...]
</project>
```
• Download the xUnitSummary.xsl file and save it to C:\Program Files\CruiseControl.NET\webdashboard\xsl
• Edit C:\Program Files\CruiseControl.NET\webdashboard\dashboard.config and add a line for the summary, as shown below (highlighted in yellow):
• Reset the IIS server that's running CCnet
• Force a build and see the results! They should look similar to the following:

Last edited Apr 11, 2009 at 10:07 PM by BradWilson, version 6