@Mojo(name="failsafe-report-only") public class FailsafeReportMojo extends AbstractSurefireReportMojo
Modifier and Type | Field and Description |
---|---|
private boolean |
alwaysGenerateFailsafeReport
If set to true the failsafe report will be generated even when there are no failsafe result files.
|
private java.lang.String |
description
A custom description for the project reports page.
|
private java.lang.String |
outputName
The filename to use for the report.
|
private boolean |
skipFailsafeReport
If set to true the failsafe report generation will be skipped.
|
private java.lang.String |
title
A custom title of the report for the menu and the project reports page.
|
outputDirectory, project, siteRenderer
Constructor and Description |
---|
FailsafeReportMojo() |
Modifier and Type | Method and Description |
---|---|
private java.util.ResourceBundle |
getBundle(java.util.Locale locale) |
java.lang.String |
getDescription() |
java.lang.String |
getDescription(java.util.Locale locale) |
java.lang.String |
getName(java.util.Locale locale) |
java.lang.String |
getOutputName() |
protected java.io.File |
getSurefireReportsDirectory(org.apache.maven.project.MavenProject subProject)
Gets the default surefire reports directory for the specified project.
|
java.lang.String |
getTitle() |
protected boolean |
isGeneratedWhenNoResults()
Whether the report should be generated when there are no test results.
|
protected boolean |
isSkipped()
Whether the report should be generated or not.
|
void |
setDescription(java.lang.String description) |
void |
setTitle(java.lang.String title) |
canGenerateReport, executeReport, getConsoleLogger
closeReport, execute, generate, generate, generate, getCategoryName, getInputEncoding, getOutputDirectory, getOutputEncoding, getProject, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, isExternalReport, setReportOutputDirectory
@Parameter(defaultValue="failsafe-report", property="outputName", required=true) private java.lang.String outputName
@Parameter(defaultValue="false", property="alwaysGenerateFailsafeReport") private boolean alwaysGenerateFailsafeReport
false
to preserve legacy behaviour pre 2.10.@Parameter(defaultValue="false", property="skipFailsafeReport") private boolean skipFailsafeReport
@Parameter(defaultValue="", property="failsafe.report.title") private java.lang.String title
@Parameter(defaultValue="", property="failsafe.report.description") private java.lang.String description
protected java.io.File getSurefireReportsDirectory(org.apache.maven.project.MavenProject subProject)
AbstractSurefireReportMojo
getSurefireReportsDirectory
in class AbstractSurefireReportMojo
subProject
- the project to query.public java.lang.String getOutputName()
AbstractSurefireReportMojo
getOutputName
in interface org.apache.maven.reporting.MavenReport
getOutputName
in class AbstractSurefireReportMojo
protected boolean isSkipped()
AbstractSurefireReportMojo
isSkipped
in class AbstractSurefireReportMojo
true
if and only if the report should be generated.protected boolean isGeneratedWhenNoResults()
AbstractSurefireReportMojo
isGeneratedWhenNoResults
in class AbstractSurefireReportMojo
true
if and only if the report should be generated when there are no result files at all.public void setTitle(java.lang.String title)
setTitle
in class AbstractSurefireReportMojo
public java.lang.String getTitle()
getTitle
in class AbstractSurefireReportMojo
public void setDescription(java.lang.String description)
setDescription
in class AbstractSurefireReportMojo
public java.lang.String getDescription()
getDescription
in class AbstractSurefireReportMojo
public java.lang.String getName(java.util.Locale locale)
getName
in interface org.apache.maven.reporting.MavenReport
getName
in class AbstractSurefireReportMojo
public java.lang.String getDescription(java.util.Locale locale)
getDescription
in interface org.apache.maven.reporting.MavenReport
getDescription
in class AbstractSurefireReportMojo
private java.util.ResourceBundle getBundle(java.util.Locale locale)