Here's a simple patch to XMLTestResult that turns the test case and test
method strings into links to the appropriate runs. I'm not sure if it'll
handle all cases (since I know virtually nothing about the guts of MXUnit),
but it works for me.
Index: C:/apps/wwwroot/eventlog/lib/mxunit/framework/XMLTestResult.cfc
===================================================================
--- C:/apps/wwwroot/eventlog/lib/mxunit/framework/XMLTestResult.cfc
(revision 481)
+++ C:/apps/wwwroot/eventlog/lib/mxunit/framework/XMLTestResult.cfc
(working copy)
@@ -290,11 +290,13 @@
<xsl:otherwise>white</xsl:otherwise>
</xsl:choose>
</xsl:variable>
+<xsl:variable name="linkroot">#getContextRoot()#/<xsl:value-of
select="translate(@component, ''.'', ''/'')"
/>.cfc?method=runtestremote&output=html</xsl:variable>
<tr bgcolor="{$bgcolor}" valign="top">
<xsl:variable name="rowid" select="@number" />
<td><xsl:value-of select="@number" />.</td>
<td><xsl:value-of select="date" /></td>
- <td align="left" nowrap="true"><xsl:value-of select="@component"
/>.<xsl:value-of select="@testname" />()</td>
+ <td align="left" nowrap="true">
+<a href="{$linkroot}"><xsl:value-of select="@component" /></a>.<a
href="{$linkroot}&testmethod={@testname}"><xsl:value-of
select="@testname" /></a>()</td>
<td>
<xsl:variable name="failed" select="results/message" />
<xsl:choose>
Cc: marc.esher
Labels: Type-Enhancement