site/docs/getting-test-results-in-ccnet.md
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.
Xml= attribute, as shown below:<Project DefaultTargets="Test">
<UsingTask
AssemblyFile="xunit.runner.msbuild.dll"
TaskName="Xunit.Runner.MSBuild.xunit"/>
<Target Name="Test">
<xunit
Assemblies="test.xunit\bin\Debug\test.xunit.dll"
Xml="test.xunit.dll.xml"/>
</Target>
</Project>
C:\Program Files\CruiseControl.NET\server\ccnet.config) to merge your XML files into the CCnet build output, 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):
{: .border .oversize }
Reset the IIS server that's running CCnet
Force a build and see the results! They should look similar to the following:
{: .border .oversize }