I'm setting up a PC to run 1.8.2 CCNet, and I couldn't get the dashboard
NUnitDetail report to show the same way as it does on a CCNet 1.6 running
on another box. I think I tracked things down to the tests.xsl file used
by the dashboard. Not being literate in XSL transforms, I thought I'd post
this for someone else to review. Here are what I think are the offending
lines in the tests.xsl file:
<tr>
<th>Test Fixture</th>
<th>Status</th>
<th>Progress</th>
</tr>
<xsl:apply-templates select=".//test-suite[@
result='Failure'][results/test-case]">
<xsl:sort select="@name" order="ascending"
data-type="text"/>
</xsl:apply-templates>
<xsl:apply-templates select=".//test-suite[@
result='Inconclusive'][results/test-case]">
<xsl:sort select="@name" order="ascending"
data-type="text"/>
</xsl:apply-templates>
<xsl:apply-templates select=".//test-suite[@
result='Success'][results/test-case/@executed='False']">
<xsl:sort select="@name" order="ascending"
data-type="text"/>
</xsl:apply-templates>
<xsl:apply-templates select=".//test-suite[@
result='Success'][results/test-case/@executed='True']" mode="success">
<xsl:sort select="@name" order="ascending"
data-type="text"/>
</xsl:apply-templates>
The results files from the version of NUnit we're using (2.4.7) do not
contain the "result= '....' strings highlighted above. Here's the relevant
lines from the CCNet 1.6 tests.xsl file:
<xsl:apply-templates select=".//test-suite[@
success='False'][results/test-case]">
<xsl:sort select="@name" order="ascending"
data-type="text"/>
</xsl:apply-templates>
<xsl:apply-templates
select=".//test-suite[results/test-case/@executed='False']">
<xsl:sort select="@name" order="ascending"
data-type="text"/>
</xsl:apply-templates>
<xsl:apply-templates select=".//test-suite[@
success='True'][results/test-case/@executed='True']" mode="success">
<xsl:sort select="@name" order="ascending"
data-type="text"/>
</xsl:apply-templates>
If I replace the lines from the 1.8.2 tests.xls file with the above lines
taken from the 1.6.xxx tests.xls, the NUnitDetail report seems to display
OK.
Am I looking at this correctly, or is there something else going on here?
I was expecting the 1.8.2 dashboard to work the same as the 1.6.
Thanks,
Steve