Class TestOutputReportEntry

java.lang.Object
org.apache.maven.surefire.api.report.TestOutputReportEntry
All Implemented Interfaces:
OutputReportEntry

public final class TestOutputReportEntry extends Object implements OutputReportEntry
This report entry should be used in TestOutputReceiver.writeTestOutput(OutputReportEntry).
  • Constructor Details

    • TestOutputReportEntry

      public TestOutputReportEntry(String log, boolean isStdOut, boolean newLine, RunMode runMode, Long testRunId)
      Wraps the output from the running test-case.
      Parameters:
      log - stdout/sterr output from running tests
      isStdOut - Indicates if this is stdout
      newLine - print on new line
      runMode - the phase of testset
      testRunId - unique id of the test run pointing to the test description
    • TestOutputReportEntry

      public TestOutputReportEntry(OutputReportEntry reportEntry, RunMode runMode, Long testRunId)
    • TestOutputReportEntry

      public TestOutputReportEntry(String log, boolean isStdOut, boolean newLine, RunMode runMode, Long testRunId, String stack)
      Constructor used when receiving output from a forked JVM where the stack trace was captured on the forked side.
      Parameters:
      log - stdout/stderr output
      isStdOut - true if stdout
      newLine - true if newline
      runMode - the run mode
      testRunId - the test run id
      stack - the stack trace captured on the forked JVM side
  • Method Details