Function SimpleParser

  • Invoked once per task.

    Parameters

    • stdout: string

      the concatenated stream from stdin, stripped of the PASS or FAIL tokens from BatchProcessOptions.

    • stderr: undefined | string

      if defined, includes all text emitted to stderr.

    • passed: boolean

      true iff the PASS pattern was found in stdout.

    Returns string | Promise<string>

    Throws

    an error if the Parser implementation wants to reject the task. It is valid to raise Errors if stderr is undefined.

    See

    BatchProcessOptions