public abstract class AbstractSurefireReportMojo
extends org.apache.maven.reporting.AbstractMavenReport
Modifier and Type | Field and Description |
---|---|
private boolean |
aggregate
Whether to build an aggregated report at the root, or build individual reports.
|
private boolean |
linkXRef
Whether to link the XRef if found.
|
private java.util.List<org.apache.maven.project.MavenProject> |
reactorProjects
The projects in the reactor for aggregation report.
|
private java.io.File[] |
reportsDirectories
Directories containing the XML Report files that will be parsed and rendered to HTML format.
|
private java.io.File |
reportsDirectory
Deprecated.
|
private boolean |
showSuccess
If set to false, only failures are shown.
|
private java.io.File |
xrefLocation
Location of the Xrefs to link.
|
outputDirectory, project, siteRenderer
Constructor and Description |
---|
AbstractSurefireReportMojo() |
Modifier and Type | Method and Description |
---|---|
boolean |
canGenerateReport() |
private java.lang.String |
determineXrefLocation() |
void |
executeReport(java.util.Locale locale) |
private java.util.ResourceBundle |
getBundle(java.util.Locale locale) |
java.lang.String |
getDescription(java.util.Locale locale) |
java.lang.String |
getName(java.util.Locale locale) |
abstract java.lang.String |
getOutputName() |
private java.util.List<org.apache.maven.project.MavenProject> |
getProjectsWithoutRoot() |
private java.util.List<java.io.File> |
getReportsDirectories() |
protected abstract 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.
|
closeReport, execute, generate, generate, generate, getCategoryName, getInputEncoding, getOutputDirectory, getOutputEncoding, getProject, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, isExternalReport, setReportOutputDirectory
@Parameter(defaultValue="true", required=true, property="showSuccess") private boolean showSuccess
@Parameter private java.io.File[] reportsDirectories
@Deprecated @Parameter private java.io.File reportsDirectory
@Parameter(defaultValue="${reactorProjects}", readonly=true) private java.util.List<org.apache.maven.project.MavenProject> reactorProjects
@Parameter(defaultValue="${project.reporting.outputDirectory}/xref-test") private java.io.File xrefLocation
@Parameter(defaultValue="true", property="linkXRef") private boolean linkXRef
@Parameter(defaultValue="false", property="aggregate") private boolean aggregate
protected boolean isSkipped()
true
if and only if the report should be generated.protected boolean isGeneratedWhenNoResults()
true
if and only if the report should be generated when there are no result files at all.public void executeReport(java.util.Locale locale) throws org.apache.maven.reporting.MavenReportException
executeReport
in class org.apache.maven.reporting.AbstractMavenReport
org.apache.maven.reporting.MavenReportException
public boolean canGenerateReport()
canGenerateReport
in interface org.apache.maven.reporting.MavenReport
canGenerateReport
in class org.apache.maven.reporting.AbstractMavenReport
private java.util.List<java.io.File> getReportsDirectories()
protected abstract java.io.File getSurefireReportsDirectory(org.apache.maven.project.MavenProject subProject)
subProject
- the project to query.private java.util.List<org.apache.maven.project.MavenProject> getProjectsWithoutRoot()
private java.lang.String determineXrefLocation()
public java.lang.String getName(java.util.Locale locale)
public java.lang.String getDescription(java.util.Locale locale)
public abstract java.lang.String getOutputName()
private java.util.ResourceBundle getBundle(java.util.Locale locale)