JSUnit
From MoodleDocs
Note: This page is a work-in-progress. Feedback and suggested improvements are welcome. Please join the discussion on moodle.org or use the page comments.
Admin tool to wrap Javascript unit tests execution. Is based on YUI test module, taking profit of the dependencies system to avoid core modifications.
Test cases can be created like any other YUI 3 module adding a module in the yui/ folder (More info in https://docs.moodle.org/dev/How_to_create_a_YUI_3_module) Tests should include it's dependencies like any other YUI module
Usage
The link to the unit test execution is in the Administration tree -> Development -> JSUnit
Links
- Tracker issue: [https://tracker.moodle.org/browse/MDL-30899 MDL-30899]
- Development branch: https://github.com/dmonllao/moodle/commits/MDL-35595_master
- YUI test: http://yuilibrary.com/yuitest/
- Yeti: http://yuilibrary.com/projects/yeti/ and https://github.com/yui/yeti/blob/master/README.md