Search code examples
nunitnantcruisecontrol

CruiseControl.NET view NUnit xml test result when Nant build file executes NUnit


I have a Nant build file which executes NUnit after compiling the dll's. I am executing the NAnt build file with a task in CruiseControl. So NAnt is running the tests not CruiseControl.

How do I configure it so that the CruiseControl web dashboard can be used to view the NUnit output ?


This fixed it:

<publishers>
    <merge>
        <files>
                 <file>build\*.test-result.xml</file>
        </files>
    </merge>
    <xmllogger />
 </publishers>

Solution

  • You want to use the merge capabilities of CruiseControl to grab your NUnit XML output. This is the situation my company has going, and it seems to work fairly well. Here is a config snippet (This goes in the <publishers> element in CCNet.config):

     <merge>
         <files>
             <file><path to XML output>\*.xml</file>
         </files>
     </merge>
    

    Hope this works for you.