Class SurefireReportReader

java.lang.Object
org.apache.juneau.terminal.report.SurefireReportReader
All Implemented Interfaces:
ReportReader

public final class SurefireReportReader extends Object implements ReportReader
Reads Maven Surefire (and Failsafe) TEST-*.xml reports.

The path may be a report directory, in which case every TEST-*.xml in it is read in name order, or a single file. The framework key is surefire.

  • Constructor Details

  • Method Details

    • fw

      public String fw()
      Description copied from interface: ReportReader
      Returns the default framework key for the tests this reader produces.
      Specified by:
      fw in interface ReportReader
      Returns:
      The key, for example surefire or jest.
    • read

      public ReportResult read(Path path, ReportLimits limits)
      Description copied from interface: ReportReader
      Reads a report.
      Specified by:
      read in interface ReportReader
      Parameters:
      path - The report file (or, for Surefire, a directory of them).
      limits - The bounds to apply.
      Returns:
      The result; never null.