-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved surefire report plugin config. Fix last failing tests.
- Loading branch information
Showing
10 changed files
with
102 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
PARENT=$(realpath $(dirname "$2" )) | ||
set +e | ||
xsltproc --load-trace --stringparam file $(basename "$PARENT") "$1" "$2" | ||
RC=$? | ||
if [ "$RC" != "0" ]; then | ||
exit $RC | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0"?> | ||
<xsl:stylesheet version="1.0" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
<xsl:param name="file" select="'unknown'"/> | ||
<xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/> | ||
<xsl:template match="/testsuite"> | ||
<xsl:apply-templates select="testcase"/> | ||
</xsl:template> | ||
<xsl:template match="testcase"> | ||
<xsl:element name="testcase"> | ||
<xsl:attribute name="file"> | ||
<xsl:value-of select="$file"/> | ||
</xsl:attribute> | ||
<xsl:attribute name="classname"> | ||
<xsl:value-of select="@classname"/> | ||
</xsl:attribute> | ||
<xsl:attribute name="name"> | ||
<xsl:value-of select="@name"/> | ||
</xsl:attribute> | ||
<xsl:attribute name="time"> | ||
<xsl:value-of select="@time"/> | ||
</xsl:attribute> | ||
<xsl:copy-of select="skipped"/> | ||
<xsl:copy-of select="error"/> | ||
<xsl:copy-of select="system-out"/> | ||
</xsl:element> | ||
</xsl:template> | ||
<xsl:template match="*"/> | ||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0"?> | ||
<xsl:stylesheet version="1.0" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
<xsl:output media-type="text/plain"/> | ||
<xsl:template match="/"> | ||
<xsl:for-each select="testsuite/testcase"> | ||
<xsl:if test="(count(rerunError) + count(error)) > 0"> | ||
<xsl:text xml:space="preserve">
</xsl:text> | ||
<xsl:value-of select="@classname"/><xsl:text>: </xsl:text><xsl:value-of select="@name"/><xsl:text xml:space="preserve">
</xsl:text> | ||
<xsl:for-each select="error"> | ||
<xsl:text xml:space="preserve"> </xsl:text><xsl:value-of select="@message"/> | ||
<xsl:text xml:space="preserve">
</xsl:text> | ||
</xsl:for-each> | ||
</xsl:if> | ||
</xsl:for-each> | ||
</xsl:template> | ||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")") | ||
DIR=$1 | ||
echo "<testsuite>" > combined.xml | ||
set -e | ||
find "$1" -name "*.xml" -exec $SCDIR/combine-fragment.sh "$SCDIR/combine-testcases.xsl" '{}' \; 2> /dev/null >> combined.xml | ||
echo "</testsuite>" >> combined.xml | ||
xsltproc $SCDIR/extract-failures.xsl combined.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")") | ||
find . -type d -name surefire-reports -exec $SCDIR/find-test-errors.sh {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
FILE=$1 | ||
FAILED=$(grep -c -F "Failures: 0" $FILE) | ||
ERRORS=$(grep -c -F "Errors: 0" $FILE) | ||
RC2=$? | ||
if (( (RC1 + RC2) > 0)); then | ||
echo "RC1=$RC1, RC2=$RC2: $FILE" | ||
cat $FILE | ||
fi |