RSS RSS feed | Atom Atom feed

More fitnesse and CruiseControl.net integration

In a previous post I mentioned how my co-worker Jeffrey Palermo and I have created a stylesheet to integrate Fitnesse summary results into the CruiseControl.NET web dashboard. I have just added a new stylesheet that shows the details. It isn't super-pretty, but we wanted it because we have started doing some tests that take quite a while to run - sometimes 3 minutes to finish a page. So when we get a failure, I wanted to be able to see what the exact failures were without having to re-run the test. That data is in the XML, but the problem I ran into is that it is stored as HTML inside a CDATA section. Doing an XSL transform on that with the xsl:output mode set to html results in seeing the actual html on the page. So I set the output mode to text, and pared the xsl down to something pretty lightweight. I've attached it here for your enjoyment.

To use it, change the dashboard.config file on your fitnesse server to have a section/line like this:

<plugins>
… lots snipped …
	<buildPlugins>
		<xslReportBuildPlugin description="NUnit Details" 
			actionName="NUnitDetailsBuildReport" xslFileName="xsl\\tests.xsl" />
		<xslReportBuildPlugin description="NUnit Timings" 
			actionName="NUnitTimingsBuildReport" xslFileName="xsl\\timing.xsl" />

… more snippage ...

<xslReportBuildPlugin description="FitNesse Summary" actionName="FitNesseSummary" xslFileName="xsl\\fitnesse.xsl" /> <xslReportBuildPlugin description="FitNesse Details" actionName="FitNesseDetails" xslFileName="xsl\\fitnesse-details.xsl" /> </buildPlugins> </plugins>

Things to note: the results as shown in CC.Net are not pretty - I only embedded enough style to show the 'correct' cells in green and the 'wrong' cells in red, etc. There is an image link in there that doesn't show up correctly, and you may also see javascript links if you have a setup page or anything like that. Those links won't work. It could certainly be made prettier by embedding more styles into the xsl - I'll leave that as an exercise for the reader. If you do anything like that, feel free to submit it here as a comment (or send me email - there is a link on my home page) and I'll update the file for others.

Tags :



Add a comment Send a TrackBack