-
New Feature
-
Resolution: Unresolved
-
Minor
-
Future Dev
YUI includes a unit testing framework (http://yuilibrary.com/projects/yuitest/) but is not used by Moodle, it could be good to have an execution wrapper to allow Moodle components to write unit tests for it's YUI 3 modules; the YUI test version included in the YUI 3 library allows testing of all kind of JS, not only YUI modules (they can be tested inside a YUI 3 module) It outputs the tests results in different formats including JUnitXML
Working on it during the STABLE team week off.
If it needs to be executed from CLI there is an available tool YUI yeti (http://yuilibrary.com/projects/yeti/) with Node.js dependencies that can test JS code against multiple browsers.
- has been marked as being related by
-
MDL-41289 create ajax method to get user pref
-
- Closed
-
- is blocked by
-
MDL-76231 Rewrite core/ajax as an ESM using the fetch API
-
- Development in progress
-
-
MDL-78266 Break core/templates into smaller, constituent parts
-
- Closed
-
-
MDL-72609 Convert pendingPromise to native Promise
-
- Closed
-
- is child of
-
IDEA-91 JS/ES Unit testing
-
- Cancelled
-
- will help resolve
-
MDL-42518 Add behat testing for form change checker
-
- Closed
-