eu.lindenbaum.maven.report
Class CoverageReport
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.reporting.AbstractMavenReport
eu.lindenbaum.maven.ErlangReport
eu.lindenbaum.maven.report.CoverageReport
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.apache.maven.reporting.MavenMultiPageReport, org.apache.maven.reporting.MavenReport
public class CoverageReport
- extends ErlangReport
Generates a test coverage report with: project summary, showing the number of
functions, clauses executable lines and their test coverage percentage. A
module list with individual coverage reports and an extensive source code
report, with lines annotated in red or green, showing the exact coverage.
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.
- Author:
- Olle Törnström
- Goal:
- coverage
- Execute:
- phase="test"
Fields inherited from interface org.apache.maven.reporting.MavenReport |
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport |
closeReport, execute, generate, generate, generate, getCategoryName, getReportOutputDirectory, getSink, getSinkFactory, isExternalReport, setReportOutputDirectory |
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 |
CoverageReport
public CoverageReport()
getDescription
public String getDescription(Locale locale)
getName
public String getName(Locale locale)
getOutputName
public String getOutputName()
execute
protected void execute(org.apache.maven.plugin.logging.Log log,
Locale locale,
Properties p)
throws org.apache.maven.plugin.MojoExecutionException
- Description copied from class:
ErlangReport
- Will be invoked when
AbstractMavenReport.execute()
gets invoked on the base class.
- Specified by:
execute
in class ErlangReport
- Parameters:
log
- logger to be used for output logginglocale
- the demanded locale as passed to ErlangReport.executeReport(Locale)
p
- to be passed by the base class.
- Throws:
org.apache.maven.plugin.MojoExecutionException
- See Also:
AbstractMavenReport.executeReport(Locale)
Copyright © 2011 Lindenbaum GmbH. All Rights Reserved.