You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2001/07/30 23:41:57 UTC
[Bug 2905] New: - minor problem in junitreport's xsl: overview-packages.xsl
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2905
*** shadow/2905 Mon Jul 30 14:41:57 2001
--- shadow/2905.tmp.802 Mon Jul 30 14:41:57 2001
***************
*** 0 ****
--- 1,42 ----
+ +============================================================================+
+ | minor problem in junitreport's xsl: overview-packages.xsl |
+ +----------------------------------------------------------------------------+
+ | Bug #: 2905 Product: Ant |
+ | Status: NEW Version: Nightly build |
+ | Resolution: Platform: Sun |
+ | Severity: Minor OS/Version: Solaris |
+ | Priority: Other Component: Optional Tasks |
+ +----------------------------------------------------------------------------+
+ | Assigned To: ant-dev@jakarta.apache.org |
+ | Reported By: asokol@edocs.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ Using ant-1.4alpha nightly build taken on July 27th, 2001
+
+ When using default xsl formatting with junitreport task, statistics on a Home
+ page under 'Packages' are not reported properly - get always set to zeroes.
+
+ If overview-packages.xsl file is modified as follows - from line #94 onward, it
+ works:
+
+ <xsl:template name="statistics">
+ <xsl:variable name="isError"/>
+ <td>
+ <xsl:value-of select="sum(../testsuite[@package = current()/@package
+ ]/@tests)"/></td>
+ <td>
+ <xsl:value-of select="sum(../testsuite[@package = current()/@package
+ ]/@errors)"/></td>
+ <td>
+ <xsl:value-of select="sum(../testsuite[@package = current()/@package
+ ]/@failures)"/></td>
+ <td>
+ <xsl:call-template name="display-time">
+ <xsl:with-param name="value" select="sum(../testsuite[@package =
+ current()/@package]/@time)"/>
+ </xsl:call-template>
+ </td>
+ </xsl:template>