Note:

This site is no longer used and is in read-only mode. Instead please go to our new Moodle Developer Resource site.

JSUnit

From MoodleDocs
Revision as of 08:43, 24 September 2012 by David Monllaó Olivé (talk | contribs) (Created page with "{{Work in progress}} 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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