Files
maven-plugins/clover/src/plugin-test/maven.xml
T

37 lines
1.0 KiB
XML

<project
xmlns:util="jelly:util"
xmlns:j="jelly:core"
xmlns:ant="jelly:ant"
xmlns:x="jelly:xml"
xmlns:maven="jelly:maven"
xmlns:assert="assert">
<goal name="testPlugin">
<!-- Fixture -->
<attainGoal name="clean"/>
<!-- Make sure (to some extent) that we support multiple source and
test paths -->
<ant:mkdir dir="${maven.build.dir}/clovertestdir"/>
<ant:path id="test.classpath">
<ant:pathelement path="${maven.build.dir}/clovertestdir"/>
</ant:path>
<maven:addPath id="maven.compile.src.set" refid="test.classpath"/>
<maven:addPath id="maven.test.compile.src.set" refid="test.classpath"/>
<!-- Call goal to test -->
<attainGoal name="site"/>
<!-- Verifications -->
<assert:assertFileExists file="${maven.docs.dest}/clover/index.html"/>
<!-- Call report which will generate both the HTML and XML reports -->
<attainGoal name="clover"/>
<!-- Verifications -->
<assert:assertFileExists file="${maven.build.dir}/clover.xml"/>
</goal>
</project>