public abstract class AbstractSurefireReportMojo extends AbstractMavenReport
outputDirectory, project, siteRenderer
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
Constructor and Description |
---|
AbstractSurefireReportMojo() |
Modifier and Type | Method and Description |
---|---|
boolean |
canGenerateReport() |
void |
executeReport(Locale locale) |
protected abstract LocalizedProperties |
getBundle(Locale locale,
ClassLoader resourceBundleClassLoader) |
protected org.apache.maven.plugin.surefire.log.api.ConsoleLogger |
getConsoleLogger() |
abstract String |
getDescription() |
String |
getDescription(Locale locale) |
String |
getName(Locale locale) |
abstract String |
getOutputName() |
protected abstract File |
getSurefireReportsDirectory(org.apache.maven.project.MavenProject subProject)
Gets the default surefire reports directory for the specified project.
|
abstract 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.
|
abstract void |
setDescription(String description) |
abstract void |
setTitle(String title) |
closeReport, execute, generate, generate, generate, getCategoryName, getInputEncoding, getOutputDirectory, getOutputEncoding, getProject, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, isExternalReport, setReportOutputDirectory
getLog, getPluginContext, setLog, setPluginContext
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 abstract void setTitle(String title)
public abstract String getTitle()
public abstract void setDescription(String description)
public abstract String getDescription()
public void executeReport(Locale locale) throws MavenReportException
executeReport
in class AbstractMavenReport
MavenReportException
public boolean canGenerateReport()
canGenerateReport
in interface MavenReport
canGenerateReport
in class AbstractMavenReport
protected abstract File getSurefireReportsDirectory(org.apache.maven.project.MavenProject subProject)
subProject
- the project to query.public abstract String getOutputName()
protected abstract LocalizedProperties getBundle(Locale locale, ClassLoader resourceBundleClassLoader)
protected final org.apache.maven.plugin.surefire.log.api.ConsoleLogger getConsoleLogger()
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.