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:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.apache.maven.reporting.MavenMultiPageReport, org.apache.maven.reporting.MavenReport
- Direct Known Subclasses:
- SurefireReportOnlyMojo
public class SurefireReportMojo
- extends AbstractSurefireReportMojo
Creates a nicely formatted Surefire Test Report in html format.
- Version:
- $Id: SurefireReportMojo.java 1204901 2011-11-22 10:35:17Z stephenc $
- Author:
- Johnny R. Ruiz III
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 |
SurefireReportMojo
public SurefireReportMojo()
getSurefireReportsDirectory
protected File getSurefireReportsDirectory(org.apache.maven.project.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 org.apache.maven.reporting.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-2011 The Apache Software Foundation. All Rights Reserved.