Adding MbUnit to CCNet
Some slightly older guides knocking about on the web, the easiest way of adding MbUnit to CCNet is to change the XSL reports (you can try the plugin option if you want). As noted in an earlier post, the XSL to show MbUnit reports is shipped with CCNet so you will have everything you need. I will get this into the docs I promise but for now here is a quick guide.
Get MbUnit reports into CCNet.
You will need to ensure that MbUnit is reporting to XML (you can use either the msbuild, nant or console tasks for this) and is merged into the CCNet XML by changing the ccnet.config and your projects MERGE group.
Use MbUnit XSL
When this is done you will need to change CCNet to use MbUnit XSL over the default NUnit XSL. You will need to make this change for the webdashboard and the server. There two ways of doing this, the easiest is to rename files (in the XSL folder) as follows.
-
unitests.xsl to unitests2.xsl
-
MbUnitSummary.xsl to unitests.xsl
-
tests.xsl to tests2.xsl
-
MbUnitDetails.xsl to tests.xsl
The other option is
-
change the ccservice.exe.config and the xslFiles section replacing tests.xsl with MbUnitDetails.xsl
-
change the dashboard.config, replacing unitests.xsl with MbUnitSummary.xsl and tests.xsl with MbUnitDetails.xsl.