Allow PHPUnit check for result code on stderr as well as stdout

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: PHP
    • None
    • 0
    • 3

      Problem Definition

      We currently do not check error output for Build Tasks, but for tasks such as PHPUnit, which can be configured to output to stderr, we won't find the build result.

      This can cause false negatives since the "OK" will not be found.

      In a Support Ticket, we have the following report from a customer:

      It is possible to make phpunit output the results on stderr instead of stdout (through configuration `stderr="true"` or the `--stderr` flag).
      Currently, the PHPUnit task expects the string "OK" on stdout in order to determine that the task ran successfully. This is naive because obviously it could also appear on stderr.

      Suggested Solution

      Allow tasks to search for success markers in stderr as well as stdout.

      Workaround

      Use stdout instead of stderr.

              Assignee:
              Unassigned
              Reporter:
              Ellie Z
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: