Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-77273

improved behat error detection

XMLWordPrintable

      Hi, I have reimplemented behat to use PHP error_log to find errors instead of parsing output.

      The changes:

      1. production and behat sites use the same error logging - more consistency
      2. the behat site behaves more like a real site - no exceptions instead of PHP errors in ajax
      3. the behat error log file can be used to track progress of test run and it can be used to inspect errors while it is still running
      4. cron task failures are logged
      5. WS method exceptions are logged (unless a new method describing normal exceptions is added)
      6. It is possible to use @ again to silence PHP warnings/errors

      The patch works, but I guess it may not be production quality yet...

      I have attached the results of test run with the patch - it looks like it contains real bugs that were not reported by current behat integration code.

            Unassigned Unassigned
            skodak Petr Skoda
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.