Skip to content
Permalink
Browse files

Improved junit summary report

  • Loading branch information
Ian Emmons
Ian Emmons committed May 9, 2019
1 parent ba1243f commit ae943a5ee1c51d84c0b5294dbebe4c8f66bcced4
Showing with 20 additions and 10 deletions.
  1. +7 −2 build.xml
  2. +13 −8 junit-test-outcomes.xsl
@@ -174,14 +174,19 @@
</chainedmapper>
</mapper>
</xslt>
<concat destfile="${reportsDir}/junit-summary.txt">
<echo file="${reportsDir}/junit-summaries/column-headers.txt" append="false"
message="AAA Project,Class,Tests,Failures,Errors,Skipped,Time (sec)${line.separator}"/>
<concat destfile="${reportsDir}/junit-summary.csv">
<fileset dir="${reportsDir}/junit-summaries" includes="*.txt"/>
<filterchain>
<sortfilter/>
</filterchain>
</concat>
<delete dir="${reportsDir}/junit-summaries"/>
</target>

<target name="testSummaryUpToDateCheck">
<uptodate property="isTestSummaryUpToDate" targetfile="${reportsDir}/junit-summary.txt">
<uptodate property="isTestSummaryUpToDate" targetfile="${reportsDir}/junit-summary.csv">
<srcfiles dir="${reportsDir}" includes="**/TEST-*.xml"/>
</uptodate>
</target>
@@ -17,14 +17,19 @@
<xsl:call-template name="lastPathComponent">
<xsl:with-param name="path" select="$fileDir"/>
</xsl:call-template>
<xsl:text> - </xsl:text>
<xsl:value-of select="@name"/><xsl:text>:&#x000a;</xsl:text>
<xsl:text> Tests run: </xsl:text><xsl:value-of select="@tests"/>
<xsl:text>, Failures: </xsl:text><xsl:value-of select="@failures"/>
<xsl:text>, Errors: </xsl:text><xsl:value-of select="@errors"/>
<xsl:text>, Skipped: </xsl:text><xsl:value-of select="@skipped"/>
<xsl:text>, Time elapsed: </xsl:text><xsl:value-of select="@time"/>
<xsl:text> sec&#x000a;</xsl:text>
<xsl:text>,</xsl:text>
<xsl:value-of select="@name"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="@tests"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="@failures"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="@errors"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="@skipped"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="@time"/>
<xsl:text>&#x000a;</xsl:text>
</xsl:template>

<xsl:template name="lastPathComponent">

0 comments on commit ae943a5

Please sign in to comment.
You can’t perform that action at this time.