@@ -41,6 +41,10 @@ Fixed bugs: | |||||
end of the inout stream (usually System.in or System.console) are | end of the inout stream (usually System.in or System.console) are | ||||
reached before a valid input has been read. | reached before a valid input has been read. | ||||
* junitreport does not list testsuites that fail to start any tests | |||||
because of an exception inside the all-tests and alltests-errors frames. | |||||
Bugzilla Report 62443 | |||||
Other changes: | Other changes: | ||||
-------------- | -------------- | ||||
@@ -295,6 +295,7 @@ | |||||
</xsl:apply-templates> | </xsl:apply-templates> | ||||
</xsl:when> | </xsl:when> | ||||
<xsl:when test="$type = 'errors'"> | <xsl:when test="$type = 'errors'"> | ||||
<xsl:apply-templates select=".//testsuite[error]" mode="alltests.error.row"/> | |||||
<xsl:apply-templates select=".//testcase[error]" mode="print.test"> | <xsl:apply-templates select=".//testcase[error]" mode="print.test"> | ||||
<xsl:with-param name="show.class" select="'yes'"/> | <xsl:with-param name="show.class" select="'yes'"/> | ||||
</xsl:apply-templates> | </xsl:apply-templates> | ||||
@@ -305,6 +306,7 @@ | |||||
</xsl:apply-templates> | </xsl:apply-templates> | ||||
</xsl:when> | </xsl:when> | ||||
<xsl:otherwise> | <xsl:otherwise> | ||||
<xsl:apply-templates select=".//testsuite[error]" mode="alltests.error.row"/> | |||||
<xsl:apply-templates select=".//testcase" mode="print.test"> | <xsl:apply-templates select=".//testcase" mode="print.test"> | ||||
<xsl:with-param name="show.class" select="'yes'"/> | <xsl:with-param name="show.class" select="'yes'"/> | ||||
</xsl:apply-templates> | </xsl:apply-templates> | ||||
@@ -968,4 +970,18 @@ | |||||
<xsl:param name="value"/> | <xsl:param name="value"/> | ||||
<xsl:value-of select="format-number($value,'0.00%')"/> | <xsl:value-of select="format-number($value,'0.00%')"/> | ||||
</xsl:template> | </xsl:template> | ||||
<xsl:template match="testsuite" mode="alltests.error.row"> | |||||
<xsl:variable name="package.dir"> | |||||
<xsl:if test="not(@package = '')"><xsl:value-of select="translate(@package,'.','/')"/><xsl:text>/</xsl:text></xsl:if> | |||||
</xsl:variable> | |||||
<xsl:variable name="class.href"> | |||||
<xsl:value-of select="concat($package.dir, @id, '_', @name, '.html')"/> | |||||
</xsl:variable> | |||||
<tr class="Error"> | |||||
<td><a href="{$class.href}"><xsl:value-of select="@name"/></a></td> | |||||
<td colspan="3"><xsl:apply-templates select="./error"/></td> | |||||
</tr> | |||||
</xsl:template> | |||||
</xsl:stylesheet> | </xsl:stylesheet> |
@@ -296,6 +296,7 @@ h6 { | |||||
</xsl:apply-templates> | </xsl:apply-templates> | ||||
</xsl:when> | </xsl:when> | ||||
<xsl:when test="$type = 'errors'"> | <xsl:when test="$type = 'errors'"> | ||||
<xsl:apply-templates select=".//testsuite[error]" mode="alltests.error.row"/> | |||||
<xsl:apply-templates select=".//testcase[error]" mode="print.test"> | <xsl:apply-templates select=".//testcase[error]" mode="print.test"> | ||||
<xsl:with-param name="show.class" select="'yes'"/> | <xsl:with-param name="show.class" select="'yes'"/> | ||||
</xsl:apply-templates> | </xsl:apply-templates> | ||||
@@ -306,6 +307,7 @@ h6 { | |||||
</xsl:apply-templates> | </xsl:apply-templates> | ||||
</xsl:when> | </xsl:when> | ||||
<xsl:otherwise> | <xsl:otherwise> | ||||
<xsl:apply-templates select=".//testsuite[error]" mode="alltests.error.row"/> | |||||
<xsl:apply-templates select=".//testcase" mode="print.test"> | <xsl:apply-templates select=".//testcase" mode="print.test"> | ||||
<xsl:with-param name="show.class" select="'yes'"/> | <xsl:with-param name="show.class" select="'yes'"/> | ||||
</xsl:apply-templates> | </xsl:apply-templates> | ||||
@@ -969,4 +971,18 @@ h6 { | |||||
<xsl:param name="value"/> | <xsl:param name="value"/> | ||||
<xsl:value-of select="format-number($value,'0.00%')"/> | <xsl:value-of select="format-number($value,'0.00%')"/> | ||||
</xsl:template> | </xsl:template> | ||||
<xsl:template match="testsuite" mode="alltests.error.row"> | |||||
<xsl:variable name="package.dir"> | |||||
<xsl:if test="not(@package = '')"><xsl:value-of select="translate(@package,'.','/')"/><xsl:text>/</xsl:text></xsl:if> | |||||
</xsl:variable> | |||||
<xsl:variable name="class.href"> | |||||
<xsl:value-of select="concat($package.dir, @id, '_', @name, '.html')"/> | |||||
</xsl:variable> | |||||
<tr class="Error"> | |||||
<td><a href="{$class.href}"><xsl:value-of select="@name"/></a></td> | |||||
<td colspan="3"><xsl:apply-templates select="./error"/></td> | |||||
</tr> | |||||
</xsl:template> | |||||
</xsl:stylesheet> | </xsl:stylesheet> |