Class JUnitXmlReportReader

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

public final class JUnitXmlReportReader extends Object implements ReportReader
Reads a single JUnit-XML report file, such as pytest's --junitxml output.

The framework key defaults to junit-xml; pass "pytest" to the constructor when the producer knows the file came from pytest.

  • 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.