My favorites | Sign in
Project Logo
                
Search
for
Updated Oct 20, 2009 by eungju
Labels: Maven, Featured
MavenPlugin  

Install

Add a snapshot repository.

	<pluginRepositories>
		<pluginRepository>
			<id>undercover-snaphost</id>
			<url>http://undercover.googlecode.com/svn/maven/snapshot-repository</url>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</pluginRepository>
	</pluginRepositories>

Or a release repository.

	<pluginRepositories>
		<pluginRepository>
			<id>undercover</id>
			<url>http://undercover.googlecode.com/svn/maven/repository</url>
		</pluginRepository>
	</pluginRepositories>

Add the plugin to reporting plugins.

	<reporting>
		<plugins>
			<plugin>
				<groupId>undercover</groupId>
				<artifactId>undercover-maven-plugin</artifactId>
				<configuration>

					<includes>
						<include>undercover/**</include>
					</includes>
					<excludes>
						<exclude>undercover/ISample</exclude>
					</excludes>

					<sourceEncoding>UTF-8</sourceEncoding>

					<formats>
						<format>html</format>
						<format>emmaxml</format>
						<format>coberturaxml</format>
					</formats>

				</configuration>
			</plugin>
		</plugins>
	</reporting>

You can run the goal directly:

mvn undercover:undercover-maven-plugin:undercover

Goals

instrument

Instrument the classes to measure coverage.

Configuration

Name Description Required
includes Include specified classes No
excludes Exclude specified classes No

report

Configuration

Name Description Required
sourceEncoding Source encoding. Default is UTF-8. No
formats Report formats. Available formats are html, emmaxml and coberturaxml. Default is html. No


Sign in to add a comment
Hosted by Google Code