surefire-report:report

Creates a nicely formatted Surefire Test Report in html format.

Mojo Attributes:

  • Requires a Maven 2.0 project to execute.
  • Invokes the execution of the lifecycle phase test prior to executing itself.
  • Executes in its own lifecycle: surefire

Required Parameters

Name Type Description
outputName String The filename to use for the report. Default value is surefire-report.
project MavenProject Maven Project
reportsDirectory File This directory contains the XML Report files that will be parsed and rendered to HTML format.
showSuccess boolean If set to false, only failures are shown. Default value is true.

Optional Parameters

Name Type Description
linkXRef boolean Whether to link the XRef if found. Default value is true.
outputDirectory String Location where generated html will be created.
xrefLocation File Location of the Xrefs to link. Default value is ${project.build.directory}/site/xref-test.

Parameter Details

linkXRef Whether to link the XRef if found.
  • Type: boolean
  • Required: No
  • Expression: ${linkXRef}
  • Default: true

outputDirectory Location where generated html will be created.
  • Type: java.lang.String
  • Required: No
  • Expression: ${project.build.directory}/site

outputName The filename to use for the report.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${outputName}
  • Default: surefire-report

project Maven Project
  • Type: org.apache.maven.project.MavenProject
  • Required: Yes
  • Expression: ${project}

reportsDirectory This directory contains the XML Report files that will be parsed and rendered to HTML format.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/surefire-reports

showSuccess If set to false, only failures are shown.
  • Type: boolean
  • Required: Yes
  • Expression: ${showSuccess}
  • Default: true

xrefLocation Location of the Xrefs to link.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/site/xref-test