Class JestJsonReportReader

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

public final class JestJsonReportReader extends Object implements ReportReader
Reads Jest's --json output.

The framework key is jest. A test file that failed to run (no assertions, a non-empty message) becomes one error test named (suite failed to run), so a crashed file is a visible red block rather than silence. ANSI colour codes are stripped from messages. 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.