Files
maven-plugins/clover/src/plugin-test/maven.xml
T
2004-03-04 18:05:31 +00:00

54 lines
1.6 KiB
XML

<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<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>