JUnitTestReportAggregator

Description

This task aggregates several JUnit reports localiazed in a hierarchy. It produces an index.html page referencing specified JUnit reports. In addition the index.html contains a summary of each sub JUnit reports.

To use this task, you have to specify at least the 'srcdir' attribute which defines the root location of JUnit report to aggregate. With include/exclude xml node it is possible to specify more precisely which reports must be managed.

The task class is JUnitTestReportAggregator.

Parameters

Attribute Description Required
srcdir the root directory to find JUnit report Yes
destdir the root directory to find JUnit report No (default is the srcdir value)

Examples

This first example creates a report in 'output/test' of all JUnit reports found from this root location:

<taskdef resource="ow.tasks" classpath="lib/ow_util_ant_tasks.jar">
...
<junit-report-aggregator srcdir="output/test"/>


This second example creates a report in 'output' of JUnit reports found from in 'output/test/reports/foo' and 'output/test/reports/bar':

<taskdef resource="ow.tasks" classpath="lib/ow_util_ant_tasks.jar">
...
<junit-report-aggregator srcdir="output/test/reports" destdir="output>
    <include name="foo"/>
    <include name="bar"/>
</junit-report-aggregator>

Copyright © 2000-2005 France Telecom. All rights Reserved.