org.apache.maven.plugins.surefire.report
Class SurefireReportMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.reporting.AbstractMavenReport
org.apache.maven.plugins.surefire.report.AbstractSurefireReportMojo
org.apache.maven.plugins.surefire.report.SurefireReportMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo, MavenMultiPageReport, MavenReport
- Direct Known Subclasses:
- SurefireReportOnlyMojo
@Mojo(name="report",
inheritByDefault=false)
@Execute(lifecycle="surefire",
phase=TEST)
public class SurefireReportMojo
- extends AbstractSurefireReportMojo
Creates a nicely formatted Surefire Test Report in html format.
- Author:
- Johnny R. Ruiz III
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SurefireReportMojo
public SurefireReportMojo()
getSurefireReportsDirectory
protected File getSurefireReportsDirectory(MavenProject subProject)
- Description copied from class:
AbstractSurefireReportMojo
- Gets the default surefire reports directory for the specified project.
- Specified by:
getSurefireReportsDirectory
in class AbstractSurefireReportMojo
- Parameters:
subProject
- the project to query.
- Returns:
- the default surefire reports directory for the specified project.
getOutputName
public String getOutputName()
- Description copied from class:
AbstractSurefireReportMojo
-
- Specified by:
getOutputName
in interface MavenReport
- Specified by:
getOutputName
in class AbstractSurefireReportMojo
isSkipped
protected boolean isSkipped()
- Description copied from class:
AbstractSurefireReportMojo
- Whether the report should be generated or not.
- Overrides:
isSkipped
in class AbstractSurefireReportMojo
- Returns:
true
if and only if the report should be generated.
isGeneratedWhenNoResults
protected boolean isGeneratedWhenNoResults()
- Description copied from class:
AbstractSurefireReportMojo
- Whether the report should be generated when there are no test results.
- Overrides:
isGeneratedWhenNoResults
in class AbstractSurefireReportMojo
- Returns:
true
if and only if the report should be generated when there are no result files at all.
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.