Dashboard > Pulse v2.0 > ... > pulse Files > cunit.pp
  Pulse v2.0 Log In | Sign Up   View a printable version of the current page.  
  cunit.pp
Added by Jason Sankey, last edited by Jason Sankey on Dec 04, 2008
Labels: 
(None)

Pulse Manual Index

CUnit Post-Processor

The CUnit post-processor can be used to process XML reports in the format produced by the CUnit library, version 2, adding the test results to the build result.

Attibutes

Attribute Description Required? Default
name The name of the post-processor. Yes  

See also Test Post-Processors.

Child Elements

None.

Examples

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

<cunit.pp name="cunit"/>

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

Capture a directory of reports and process them all:

<cunit.pp name="cunit"/>

<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="${cunit}"/>
        </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