Dashboard > Pulse v1.2 > ... > pulse Files > cppunit.pp
  Pulse v1.2 Log In | Sign Up   View a printable version of the current page.  
  cppunit.pp
Added by Jason Sankey, last edited by Daniel Ostermeier on May 15, 2007  (view change)
Labels: 
(None)

Pulse Manual Index

CppUnit Post-Processor

The CppUnit post-processor can be used to process XML reports in the format produced by the XmlOutputter class in CppUnit, adding the test results to the build result.

Attibutes

Attribute Description Required? Default
fail-on-failure If true, the build will be failed if any test failures are detected by this processor. No true
name The name of the post-processor. Yes  
suite If a suite is specified, all tests found by this processor will be added to that suite. No  

Child Elements

None.

Examples

Create and apply a CppUnit post-processor to a captured test report:

<cppunit.pp name="cppunit"/>

<recipe name="default">
    <command name="build">
        <make targets="test"/>
        <artifact name="cppunit xml report" file="build/reports/CppUnit.xml" fail-if-not-present="false">
            <process processor="${cppunit}"/>
        </artifact>
    </command>
</recipe>

Capture a directory of reports and process them all:

<cppunit.pp name="cppunit"/>

<recipe name="default">
    <command name="build">
        <make targets="test"/>
        <dir-artifact name="test reports" base="${base.dir}/reports" fail-if-not-present="false">
            <include pattern="**/*.xml"/>
            <process processor="${cppunit}"/>
        </dir-artifact>
    </command>
</recipe>

Zutubi wiki is Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.10 Build:#528 Nov 29, 2006) - Bug/feature request - Contact Administrators