Created
April 12, 2017 11:26
-
-
Save cooperaj/257032b6db68dd2ba6872baca3ad0cb5 to your computer and use it in GitHub Desktop.
Revisions
-
cooperaj created this gist
Apr 12, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- PHPUnit does not output valid junit files. This XSLT file transforms the output it does have to be valid. Found here on a jetbrains Teamcity issue (they added an exception to their junit parser since PHPUnit shows no inclination to change): https://youtrack.jetbrains.com/issue/TW-17249#comment=27-231993 --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="xml"/> <xsl:template match="/"> <xsl:for-each select="//testsuite[@file]"> <xsl:variable name="filename" select="concat('TEST-',@name,'.xml')" /> <xsl:result-document href="{$filename}" method="xml"> <xsl:copy-of select="." /> </xsl:result-document> </xsl:for-each> </xsl:template> </xsl:stylesheet>