-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.1
-
None
Hi, I have reimplemented behat to use PHP error_log to find errors instead of parsing output.
The changes:
- production and behat sites use the same error logging - more consistency
- the behat site behaves more like a real site - no exceptions instead of PHP errors in ajax
- 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
- cron task failures are logged
- WS method exceptions are logged (unless a new method describing normal exceptions is added)
- 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.
- has a non-specific relationship to
-
MDL-77212 Missing lang string 'nowarningsonselected' or component 'tiny_accessibilitychecker'
-
- Closed
-
-
MDL-77799 REST web service request exceptions are not included in server logs
-
- Closed
-
-
MDL-70255 Allow to analyse exceptions in behat
-
- Development in progress
-
- has been marked as being related by
-
MDL-78192 Allow web services to accept/return null for external_single_structure and external_multiple_structure
-
- Closed
-
- Testing discovered
-
MDL-76857 Behat failures rendering various H5P local files
-
- Closed
-
-
MDL-76859 Behat failures adding/editing H5P activities and content
-
- Closed
-
- will help resolve
-
MDL-59773 Improve behat exception handling
-
- Development in progress
-