Getting 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

<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>
  <project>
    <name>MyProject</name>
    [...]
    <publishers>
      <merge>
        <files>
          <file>D:\Builds\MyProject\Test.*.xml</file>
        </files>
      </merge>
      <xmllogger />
      <statistics />
    </publishers>
    [...]
  </project>

Copyright © .NET Foundation. Contributions welcomed at https://github.com/xunit/xunit/tree/gh-pages.