git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112977 13f79535-47bb-0310-9956-ffa450edef68
59 lines
1.7 KiB
XML
59 lines
1.7 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<project
|
|
xmlns:j="jelly:core"
|
|
xmlns:doc="doc">
|
|
|
|
<goal name="maven-junit-report-plugin:register">
|
|
<doc:registerReport
|
|
name="Unit Tests"
|
|
pluginName="maven-junit-report-plugin"
|
|
description="Report on the results of the unit tests."
|
|
link="junit-report"/>
|
|
</goal>
|
|
|
|
<goal name="maven-junit-report-plugin:deregister">
|
|
<doc:deregisterReport name="Unit Tests"/>
|
|
</goal>
|
|
|
|
<!-- ================================================================== -->
|
|
<!-- C R E A T E J U N I T X M L R E P O R T -->
|
|
<!-- ================================================================== -->
|
|
|
|
<goal
|
|
name="maven-junit-report-plugin:report"
|
|
description="Generate a report from the test results">
|
|
|
|
<j:if test="${unitTestSourcesPresent == 'true'}">
|
|
|
|
<j:set var="maven.test.failure.ignore" scope="parent" value="true"/>
|
|
<attainGoal name="test:test"/>
|
|
<j:set var="maven.test.failure.ignore" scope="parent"/>
|
|
|
|
<j:set var="testReportsDirectory"
|
|
value="${pom.getPluginContext('maven-test-plugin').getVariable('maven.test.reportsDirectory')}"/>
|
|
|
|
<mkdir dir="${testReportsDirectory}"/>
|
|
|
|
<!-- Consolidate the reports into a single -->
|
|
<junitreport todir="${maven.build.dir}">
|
|
<fileset dir="${testReportsDirectory}">
|
|
<include name="TEST-*.xml"/>
|
|
</fileset>
|
|
</junitreport>
|
|
|
|
<doc:jsl
|
|
input="${maven.build.dir}/TESTS-TestSuites.xml"
|
|
output="junit-report.xml"
|
|
stylesheet="${plugin.resources}/junit.jsl"
|
|
omitXmlDeclaration="true"
|
|
outputMode="xml"
|
|
prettyPrint="true"
|
|
/>
|
|
|
|
</j:if>
|
|
|
|
</goal>
|
|
|
|
</project>
|