Class SurefireReportMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.reporting.AbstractMavenReport
-
- org.apache.maven.plugins.surefire.report.AbstractSurefireReportMojo
-
- org.apache.maven.plugins.surefire.report.SurefireReportMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.apache.maven.reporting.MavenMultiPageReport,org.apache.maven.reporting.MavenReport
- Direct Known Subclasses:
SurefireReportOnlyMojo
@Mojo(name="report", inheritByDefault=false) @Execute(lifecycle="surefire", phase=TEST) public class SurefireReportMojo extends AbstractSurefireReportMojoCreates a nicely formatted Surefire Test Report in html format.- Author:
- Johnny R. Ruiz III
-
-
Constructor Summary
Constructors Constructor Description SurefireReportMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LocalizedPropertiesgetBundle(java.util.Locale locale, java.lang.ClassLoader resourceBundleClassLoader)java.lang.StringgetDescription()java.lang.StringgetOutputName()protected java.io.FilegetSurefireReportsDirectory(org.apache.maven.project.MavenProject subProject)Gets the default surefire reports directory for the specified project.java.lang.StringgetTitle()protected booleanisGeneratedWhenNoResults()Whether the report should be generated when there are no test results.protected booleanisSkipped()Whether the report should be generated or not.voidsetDescription(java.lang.String description)voidsetTitle(java.lang.String title)-
Methods inherited from class org.apache.maven.plugins.surefire.report.AbstractSurefireReportMojo
canGenerateReport, executeReport, getConsoleLogger, getDescription, getName
-
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, execute, generate, generate, generate, getCategoryName, getInputEncoding, getOutputDirectory, getOutputEncoding, getProject, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, isExternalReport, setReportOutputDirectory
-
-
-
-
Method Detail
-
getSurefireReportsDirectory
protected java.io.File getSurefireReportsDirectory(org.apache.maven.project.MavenProject subProject)
Description copied from class:AbstractSurefireReportMojoGets the default surefire reports directory for the specified project.- Specified by:
getSurefireReportsDirectoryin classAbstractSurefireReportMojo- Parameters:
subProject- the project to query.- Returns:
- the default surefire reports directory for the specified project.
-
getOutputName
public java.lang.String getOutputName()
Description copied from class:AbstractSurefireReportMojo- Specified by:
getOutputNamein interfaceorg.apache.maven.reporting.MavenReport- Specified by:
getOutputNamein classAbstractSurefireReportMojo
-
getBundle
protected LocalizedProperties getBundle(java.util.Locale locale, java.lang.ClassLoader resourceBundleClassLoader)
- Specified by:
getBundlein classAbstractSurefireReportMojo
-
isSkipped
protected boolean isSkipped()
Description copied from class:AbstractSurefireReportMojoWhether the report should be generated or not.- Overrides:
isSkippedin classAbstractSurefireReportMojo- Returns:
trueif and only if the report should be generated.
-
isGeneratedWhenNoResults
protected boolean isGeneratedWhenNoResults()
Description copied from class:AbstractSurefireReportMojoWhether the report should be generated when there are no test results.- Overrides:
isGeneratedWhenNoResultsin classAbstractSurefireReportMojo- Returns:
trueif and only if the report should be generated when there are no result files at all.
-
setTitle
public void setTitle(java.lang.String title)
- Specified by:
setTitlein classAbstractSurefireReportMojo
-
getTitle
public java.lang.String getTitle()
- Specified by:
getTitlein classAbstractSurefireReportMojo
-
setDescription
public void setDescription(java.lang.String description)
- Specified by:
setDescriptionin classAbstractSurefireReportMojo
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin classAbstractSurefireReportMojo
-
-