If you use the MbUnit console runner or GUI to run your tests rather than a third party tool such as TestDriven.NET or Resharper, you'll know that MbUnit can generate a report on how all the tests fared sorted by assembly, namespace, and fixture. For each of these, the following quantities are summarized with a counter:
MbUnit will generate test reports for you in any of four formats. Click on a format to see a report for some of the FizzBuzz example code we wrote here.
GUI and console runner can also apply your own XSL transforms to an XML report as you see fit, but exactly which report type you choose to use and how is your choice. For reference, you can find the schema for the XML report here. Included in the same folder are the XSL stylesheets we use to transform that into our HTML and text reports and an XML report compatible with CruiseControl.NET
If you want to work with MbUnit’s report generators on a code level (because for example, you’re writing a self-testing assembly), the MbUnit.Core.Report class contains static helper classes that can be used to quickly output reports. For example.
// 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);