Adding NUnit Report

You are viewing an old version (v. 2) of this page.
The latest version is v. 30, last edited on Aug 06, 2009 (view differences | )
<< View previous version | view page history | view next version >>

To add NUnit report, only need two steps:

  1. Generate NUnit XML report from NAnt or any other build tools.
  2. Publish NUnit report in the [configuration].

Generate NUnit Report

QuickBuild will NOT generate NUnit report automatically, so first make sure the NUnit report is produced by NANT or by any other build tools, the following example shows how to generate NUnit XML report by NAnt task:

NUnit target in build.xml
<target name="runUnitTests" description="Runs unit tests on specified dlls"> 
   <echo message="Before running tests"/> 

   <nunit2 failonerror="false" verbose="false"> 
       <formatter outputdir="${nant.project.basedir}" 
                  usefile="true" type="Xml" extension=".xml"/> 
       <test assemblyname="${compile.dir}\foo.bar.dll" appconfig="${compile.dir}\foo.bar.dll.config"/> 
   </nunit2> 
</target> 

After adding generate the NUnit report for your source code, you can tell QuickBuild to add those results now.

Publish NUnit Report

Just like all other [build reports], to add NUnit report is by [adding a publish step] in a [configuration]. When you add publish NUit Report step, the following screen will be displayed:

Unable to render embedded object: File (nunit_step.png) not found.

In source report files field, QuickBuild use an [enhanced Ant style file patterns] to collect the reports, and the directory you specified is relative to the [workspace] directory.

Now, QuickBuild will analyze the NUnit report and will generate the Overview/Details after each build, and also will generate the trend graph for them.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.