eu.lindenbaum.maven.mojo.app
Class Coverage
java.lang.Object
org.apache.maven.plugin.AbstractMojo
eu.lindenbaum.maven.ErlangMojo
eu.lindenbaum.maven.mojo.app.Coverage
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class Coverage
- extends ErlangMojo
Runs a test coverage analysis on the modules in of the project, optionally
printing the result to console. The coverage data is saved as a simple text
file (COVERAGE-${project.artifactId}.txt) with simple space
separated list of results, with coverage levels for: modules, functions,
clauses and lines. See also CoverageReport
, i.e. the
coverage-report
goal.
ISSUE If a test purges or unloads a module to do coverage for, the coverage
compilation information will be gone and the coverage report will fail.
- Since:
- 2.1.0
- Author:
- Olle Törnström
- See Also:
CoverageReport
- Goal:
- coverage
- Phase:
- pre-site lifecycle="site"
- Execute:
- phase="test-compile"
- Requires dependency resolution: true
- test
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Coverage
public Coverage()
execute
protected void execute(org.apache.maven.plugin.logging.Log log,
Properties p)
throws org.apache.maven.plugin.MojoExecutionException
- Description copied from class:
ErlangMojo
- Will be invoked when
ErlangMojo.execute()
gets invoked on the base class.
- Specified by:
execute
in class ErlangMojo
- Parameters:
log
- logger to be used for output loggingp
- to be passed by the base class.
- Throws:
org.apache.maven.plugin.MojoExecutionException
- See Also:
Mojo.execute()
Copyright © 2012 Lindenbaum GmbH. All Rights Reserved.