@Mojo(name="report", inheritByDefault=false) @Execute(lifecycle="surefire", phase=TEST) public class SurefireReportMojo extends AbstractSurefireReportMojo
Modifier and Type | Field and Description |
---|---|
private boolean |
alwaysGenerateSurefireReport
If set to true the surefire report will be generated even when there are no surefire result files.
|
private java.lang.String |
outputName
The filename to use for the report.
|
private boolean |
skipSurefireReport
If set to true the surefire report generation will be skipped.
|
outputDirectory, project, siteRenderer
Constructor and Description |
---|
SurefireReportMojo() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
canGenerateReport, executeReport, getDescription, getName
closeReport, execute, generate, generate, generate, getCategoryName, getInputEncoding, getOutputDirectory, getOutputEncoding, getProject, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, isExternalReport, setReportOutputDirectory
@Parameter(defaultValue="surefire-report", property="outputName", required=true) private java.lang.String outputName
@Parameter(defaultValue="true", property="alwaysGenerateSurefireReport") private boolean alwaysGenerateSurefireReport
true
to preserve legacy behaviour pre 2.10.@Parameter(defaultValue="false", property="skipSurefireReport") private boolean skipSurefireReport
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.