Class SurefireReportRenderer

java.lang.Object
org.apache.maven.reporting.AbstractMavenReportRenderer
org.apache.maven.plugins.surefire.report.SurefireReportRenderer
All Implemented Interfaces:
org.apache.maven.reporting.MavenReportRenderer

public class SurefireReportRenderer extends org.apache.maven.reporting.AbstractMavenReportRenderer
This generator creates HTML Report from Surefire and Failsafe XML Report.
  • Field Details

    • TAG_TYPE_START

      private static final Object[] TAG_TYPE_START
    • TAG_TYPE_END

      private static final Object[] TAG_TYPE_END
    • i18n

      private final org.codehaus.plexus.i18n.I18N i18n
    • i18nSection

      private final String i18nSection
    • locale

      private final Locale locale
    • parser

      private final org.apache.maven.plugins.surefire.report.SurefireReportParser parser
    • testSuites

      private final List<org.apache.maven.plugins.surefire.report.ReportTestSuite> testSuites
    • xrefTestLocation

      private final String xrefTestLocation
    • showSuccess

      private final boolean showSuccess
  • Constructor Details

    • SurefireReportRenderer

      public SurefireReportRenderer(org.apache.maven.doxia.sink.Sink sink, org.codehaus.plexus.i18n.I18N i18n, String i18nSection, Locale locale, org.apache.maven.plugin.surefire.log.api.ConsoleLogger consoleLogger, List<File> reportsDirectories, String xrefTestLocation, boolean showSuccess)
  • Method Details

    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface org.apache.maven.reporting.MavenReportRenderer
      Specified by:
      getTitle in class org.apache.maven.reporting.AbstractMavenReportRenderer
    • getI18nString

      private String getI18nString(String key)
      Parameters:
      key - The key.
      Returns:
      The translated string.
    • getI18nSection

      private String getI18nSection()
    • getI18nString

      private String getI18nString(String section, String key)
      Parameters:
      section - The section.
      key - The key to translate.
      Returns:
      the translated key.
    • formatI18nString

      private String formatI18nString(String section, String key, Object... args)
      Parameters:
      section - The section.
      key - The key to translate.
      args - The args to pass to translated string.
      Returns:
      the translated key.
    • renderBody

      public void renderBody()
      Specified by:
      renderBody in class org.apache.maven.reporting.AbstractMavenReportRenderer
    • renderSectionSummary

      private void renderSectionSummary()
    • renderSectionPackages

      private void renderSectionPackages()
    • renderSectionTestSuite

      private void renderSectionTestSuite(org.apache.maven.plugins.surefire.report.ReportTestSuite suite)
    • renderSectionTestCases

      private void renderSectionTestCases()
    • constructTestCaseSection

      private void constructTestCaseSection(org.apache.maven.plugins.surefire.report.ReportTestCase testCase)
    • toHtmlId

      private String toHtmlId(String id)
    • renderSectionFailureDetails

      private void renderSectionFailureDetails()
    • constructHotLinks

      private void constructHotLinks()
    • toHtmlIdFailure

      private String toHtmlIdFailure(org.apache.maven.plugins.surefire.report.ReportTestCase testCase)
    • sinkIcon

      private void sinkIcon(String type)
    • sinkCellAnchor

      private void sinkCellAnchor(String text, String anchor)
    • sinkAnchor

      private void sinkAnchor(String anchor)
    • sinkLink

      private void sinkLink(String href)
    • javascriptToggleDisplayCode

      private String javascriptToggleDisplayCode()