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" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

  <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 © 2017 .NET Foundation. Contributions welcomed at https://github.com/xunit/xunit.github.io.