This page last changed on Jul 12, 2005 by jflowers.
Summary

Description of the report support in MbUnit

MbUnit has a built-in support for test results. All results can be serialized to Xml (XmlReport), Html (HtmlReport), text (TextReport) or doxyfied (DoxReport). Since report serialization is built using XmlSerialization, you can also load reports to a .Net type.

Reports contains the test results are sorted by assembly, namespace, fixture. For each level, the following quantities are summarized with a counter:

  • number of successful tests,
  • number of failed tests,
  • number of ignored tests,
  • number of skipped tests
  • duration in seconds

QuickStart

The Report class (MbUnit.Core.Reports) contains static helper classes that can be used to quickly output reports:

// computed by AutoRunner or other object
 ReportResult result = ...; 

 // render to html and store filename
 string fileName = Report.RenderToHtml(result);

 // display in browser
 Process.Start(fileName);
Document generated by Confluence on Jun 11, 2007 11:56