| 48 | }}} |
| 49 | |
| 50 | Comment from r.wilczek: |
| 51 | '' Better use this version as it supports nested testsuites better and conforms to the [wiki:Documentation/reports.html documented test report format] '' |
| 52 | {{{ |
| 53 | #!xml |
| 54 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
| 55 | <xsl:output method="xml" indent="yes" /> |
| 56 | <xsl:template match="/"> |
| 57 | <report category="test"> |
| 58 | <xsl:apply-templates /> |
| 59 | </report> |
| 60 | </xsl:template> |
| 61 | <xsl:template match="//TestSuite/TestCase"> |
| 62 | <test> |
| 63 | <status> |
| 64 | <xsl:if test="@result = 'passed'">success</xsl:if> |
| 65 | <xsl:if test="@result != 'passed'">failure</xsl:if> |
| 66 | </status> |
| 67 | <fixture><xsl:value-of select="../@name" /></fixture> |
| 68 | <name><xsl:value-of select="@name" /></name> |
| 69 | </test> |
| 70 | </xsl:template> |
| 71 | </xsl:stylesheet> |
| 72 | |