|
MbUnit : UsingMbUnitInCruiseControlNet
This page last changed on Aug 25, 2005 by poobah.
Summary The following information explains how to show mbUnit reports in the CruiseControl for .NET web dashboard. There are two ways you can run MbUnit with CCNet, use a plugin as described below (edited to reflect the fact the XSL is now included in the CCNet distro) or you can simply replace the stock XSL files with the MbUnit XSL files. Stock replacementIn the XSL folder replace tests.xsl and unittests.xsl with the MbUnit replacements. Make sure that you include the MbUnit XML file in CCNet and you are good to go. Plugin MethodI recently needed to update our build process to show our "mbUnit" reports on the "CruiseControl for .NET":http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET Web dashboard. Trying to get all the pieces together to figure out how to do this was a scavenger hunt of sorts so I decided to put all the information I gathered into one place. This is the very basics of what I found and is fairly simple to implement right away. I'm sure there are more advanced ways of doing this but hopefully this information will get you going fairly quickly. Acquire the xsl filethis is included in the CCNet distro Create plugin for the Dashboard
using ThoughtWorks.CruiseControl.WebDashboard.Dashboard;
namespace ThoughtWorks.CruiseControl.WebDashboard.Plugins.mbUnit
{
public class mbUnitTestResultsPlugin : XslReportBuildPlugin
{
public mbUnitTestResultsPlugin(IBuildLogTransformer buildLogTransformer)
: base (buildLogTransformer, @"xsl\mbUnit.xsl", "View mbUnit Report", "ViewmbUnitReport")
{ }
}
}
Deploy
<buildPlugins> ... <plugin typeName="ThoughtWorks.CruiseControl.WebDashboard.Plugins.mbUnit.mbUnitTestResultsPlugin" /> </buildPlugins> <xslFiles> ... <file name="xsl\mbUnit.xsl" /> <!-- If you want to show report on main page --> </xslFiles> Putting it all together
<tasks> <merge> <files> ... <file>..\results\mbUnit-report.xml</file> </files> </merge> </tasks> Originally posted on Andrew's Blog, Test Bed |
| Document generated by Confluence on Jun 11, 2007 11:56 |