org.apache.maven.plugins.surefire.report
Class FailsafeReportMojo
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.FailsafeReportMojo
- 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 FailsafeReportMojo
- extends AbstractSurefireReportMojo
Creates a nicely formatted Failsafe Test Report in html format.
This goal does not run the tests, it only builds the reports.
See http://jira.codehaus.org/browse/SUREFIRE-257
- Since:
- 2.10
- Version:
- $Id: FailsafeReportMojo.java 1205604 2011-11-23 21:17:54Z krosenvold $
- Author:
- Stephen Connolly
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 |
FailsafeReportMojo
public FailsafeReportMojo()
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.
getName
public String getName(Locale locale)
-
- Specified by:
getName
in interface org.apache.maven.reporting.MavenReport
- Overrides:
getName
in class AbstractSurefireReportMojo
getDescription
public String getDescription(Locale locale)
-
- Specified by:
getDescription
in interface org.apache.maven.reporting.MavenReport
- Overrides:
getDescription
in class AbstractSurefireReportMojo
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.