7.9 Adding MBUnit Report

compared with
Version 14 by Robin Shen
on Jul 29, 2009 02:43.


Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 1 changes. View first change.

 [MbUnit|http://www.mbunit.com] is an advanced, extensible unit testing framework originally developed by Jonathon 'Peli' de Halleux and Jamie Cansdale. It is a free and open source unit testing tool for the .NET Framework. To publish the MBUnit reports to QuickBuild, first, the XML reports should be generated by [nant|http://nant.sourceforge.net] or by msbuild which is freely available as part of the .NET 2.0 Framework.
  
 h3. Generate MBUnit Reports
  
 The following code snippet is an example from [MBUnit|http://docs.mbunit.com/default.aspx] which will generate the XML test reports by NAnt:
 {code}
 <project default="tests">
  <target name="tests">
  <mbunit
  report-types="xml"
  report-filename-format="myreport{0}{1}"
  report-output-directory="."
  halt-on-failure="true">
  <assemblies>
  <include name="FizzBuzzTests.dll" />
  </assemblies>
  </mbunit>
  </target>
 </project>
 {code}
 More detailed information please refer to the [documentation of MBUnit|http://docs.mbunit.com/default.aspx].
  
 h3. Publish MBUnit Reports
  
 To publish MBUnit reports is by [adding a publish step|Working With Step] in a [configuration|Working with Configurations]. When you add publish NUnit Report step, the following screen will be displayed:
  
 !Screenshots^report_publish_step.png!
  
 In source report files field, QuickBuild uses an [enhanced Ant style file patterns|File Pattern Reference] to collect the reports, and the directory you specified is *relative* to the [workspace|Concepts#Workspace] directory.
  
  QuickBuild will analyze the MBUnit report and will generate the Overview/Details after each build, and it will also collect the statistics data from the reports automatically so that you can track the tests trends in [the statistics tab|4. Working with Statistics].
  QuickBuild will analyze the MBUnit report and will generate the Overview/Details after each build, and it will also collect the statistics data from the reports automatically so that you can track the tests trends in [the statistics tab|Working with Statistics].