|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.apache.maven.reporting.AbstractMavenReport org.apache.maven.plugins.surefire.report.AbstractSurefireReportMojo
public abstract class AbstractSurefireReportMojo
Abstract base class for reporting test results using Surefire.
Field Summary |
---|
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 |
Constructor Summary | |
---|---|
AbstractSurefireReportMojo()
|
Method Summary | |
---|---|
boolean |
canGenerateReport()
|
void |
executeReport(Locale locale)
|
String |
getDescription(Locale locale)
|
String |
getName(Locale locale)
|
protected String |
getOutputDirectory()
|
abstract String |
getOutputName()
|
protected MavenProject |
getProject()
|
protected Renderer |
getSiteRenderer()
|
protected abstract File |
getSurefireReportsDirectory(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. |
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 |
Constructor Detail |
---|
public AbstractSurefireReportMojo()
Method Detail |
---|
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(Locale locale) throws MavenReportException
executeReport
in class AbstractMavenReport
MavenReportException
public boolean canGenerateReport()
canGenerateReport
in interface MavenReport
canGenerateReport
in class AbstractMavenReport
protected abstract File getSurefireReportsDirectory(MavenProject subProject)
subProject
- the project to query.
public String getName(Locale locale)
public String getDescription(Locale locale)
protected Renderer getSiteRenderer()
getSiteRenderer
in class AbstractMavenReport
protected MavenProject getProject()
getProject
in class AbstractMavenReport
public abstract String getOutputName()
protected String getOutputDirectory()
getOutputDirectory
in class AbstractMavenReport
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |