Edgewall Software

Changes between Version 10 and Version 11 of Boost Test


Ignore:
Timestamp:
Mar 18, 2011, 4:41:57 PM (13 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Boost Test

    v10 v11  
    4646  </xsl:template>
    4747</xsl:stylesheet>
     48}}}
     49
     50Comment 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
    4873}}}
    4974