Class PlaywrightJsonReportReader

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

public final class PlaywrightJsonReportReader extends Object implements ReportReader
Reads Playwright's --reporter=json output.

The framework key is playwright. Suites and specs are walked recursively; a suite whose title equals its file is the file-level suite and does not contribute to the test name. A flaky test (failed, then passed on retry) is a pass. A truncated file yields no tests and a warning.

  • 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 lim)
      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).
      lim - The bounds to apply.
      Returns:
      The result; never null.