Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2021-04-07 12:02:32 -0400
committerSravan Kumar Lakkimsetti2021-04-12 00:48:55 -0400
commit8e282872a711862eaa35ed1266f51a5ec1ee95e1 (patch)
treeed4f9f5de5cb9bde6a06a909da9e3f0d61ad3746
parentddd199e7bd16770d2102eb8bb367562a67817af7 (diff)
downloadeclipse.platform.releng.aggregator-8e282872a711862eaa35ed1266f51a5ec1ee95e1.tar.gz
eclipse.platform.releng.aggregator-8e282872a711862eaa35ed1266f51a5ec1ee95e1.tar.xz
eclipse.platform.releng.aggregator-8e282872a711862eaa35ed1266f51a5ec1ee95e1.zip
Bug 572657 - add support for aborted tests in integration build report
Change-Id: Iaa57af949d5901f5d63fcd4e2c72828bbb3d7a45 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/JUNIT.XSL22
1 files changed, 21 insertions, 1 deletions
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/JUNIT.XSL b/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/JUNIT.XSL
index dcd485535..47558f6b7 100644
--- a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/JUNIT.XSL
+++ b/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/scripts/JUNIT.XSL
@@ -256,6 +256,7 @@
<xsl:variable name="errorCount" select="sum($testsuites-in-package/@errors)"/>
<xsl:variable name="failureCount" select="sum($testsuites-in-package/@failures)"/>
<xsl:variable name="skippedCount" select="sum($testsuites-in-package/@skipped)" />
+ <xsl:variable name="abortedCount" select="sum($testsuites-in-package/@aborted)" />
<xsl:variable name="timeCount" select="sum($testsuites-in-package/@time)"/>
<!-- write a summary for the package -->
@@ -272,6 +273,7 @@
<td><xsl:value-of select="$errorCount"/></td>
<td><xsl:value-of select="$failureCount"/></td>
<td><xsl:value-of select="$skippedCount" /></td>
+ <td><xsl:value-of select="$abortedCount" /></td>
<td>
<xsl:call-template name="display-time">
<xsl:with-param name="value" select="$timeCount"/>
@@ -347,6 +349,7 @@
<xsl:variable name="errorCount" select="sum(testsuite/@errors)"/>
<xsl:variable name="failureCount" select="sum(testsuite/@failures)"/>
<xsl:variable name="skippedCount" select="sum(testsuite/@skipped)" />
+ <xsl:variable name="abortedCount" select="sum(testsuite/@aborted)" />
<xsl:variable name="timeCount" select="sum(testsuite/@time)"/>
<xsl:variable name="successRate" select="($testCount - $failureCount - $errorCount) div $testCount"/>
<table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
@@ -355,6 +358,7 @@
<th>Failures</th>
<th>Errors</th>
<th>Skipped</th>
+ <th>Aborted</th>
<th>Success rate</th>
<th>Time</th>
</tr>
@@ -369,6 +373,7 @@
<td><xsl:value-of select="$failureCount"/></td>
<td><xsl:value-of select="$errorCount"/></td>
<td><xsl:value-of select="$skippedCount" /></td>
+ <td><xsl:value-of select="$abortedCount" /></td>
<td>
<xsl:call-template name="display-percent">
<xsl:with-param name="value" select="$successRate"/>
@@ -431,6 +436,7 @@
<th>Errors</th>
<th>Failures</th>
<th>Skipped</th>
+ <th>Aborted</th>
<th nowrap="nowrap">Time(s)</th>
</tr>
</xsl:template>
@@ -443,6 +449,7 @@
<th>Errors</th>
<th>Failures</th>
<th>Skipped</th>
+ <th>Aborted</th>
<th nowrap="nowrap">Time(s)</th>
<th nowrap="nowrap">Time Stamp</th>
<th>Host</th>
@@ -452,6 +459,7 @@
<!-- method header -->
<xsl:template name="testcase.test.header">
<tr valign="top">
+ <th>Class</th>
<th>Name</th>
<th>Status</th>
<th width="80%">Type</th>
@@ -477,6 +485,7 @@
<td><xsl:value-of select="@errors"/></td>
<td><xsl:value-of select="@failures"/></td>
<td><xsl:value-of select="@skipped" /></td>
+ <td><xsl:value-of select="@aborted" /></td>
<td>
<xsl:call-template name="display-time">
<xsl:with-param name="value" select="@time"/>
@@ -494,6 +503,9 @@
<xsl:when test="failure | error">Error</xsl:when>
</xsl:choose>
</xsl:attribute>
+ <td>
+ <xsl:value-of select="@classname"/>
+ </td>
<td>
<xsl:attribute name="title"><xsl:value-of select="@classname"/></xsl:attribute>
<xsl:value-of select="@name"/>
@@ -511,6 +523,10 @@
<td>Skipped</td>
<td><xsl:apply-templates select="skipped"/></td>
</xsl:when>
+ <xsl:when test="aborted">
+ <td>Aborted</td>
+ <td><xsl:apply-templates select="aborted"/></td>
+ </xsl:when>
<xsl:otherwise>
<td>Success</td>
<td></td>
@@ -537,7 +553,11 @@
<xsl:call-template name="display-failures"/>
</xsl:template>
-<!-- Style for the error, failure and skipped in the testcase template -->
+<xsl:template match="aborted">
+ <xsl:call-template name="display-failures"/>
+</xsl:template>
+
+<!-- Style for the error, failure, skipped and aborted in the testcase template -->
<xsl:template name="display-failures">
<xsl:choose>
<xsl:when test="not(@message)">N/A</xsl:when>

Back to the top