Manual:JavaScript unit testing

Unit testing in MediaWiki for it's JavaScript code base is performed using the QUnit JavaScript Testing framework..

The unit tests are located in the tests/qunit directory. Tests are organized into a directory structure that matches the directory structure of the code that they are testing. For example: The unit tests for file resources/mediawiki.util/mediawiki.util.js can be found in tests/qunit/suites/resources/mediawiki.util/mediawiki.util.js.

Running the unit tests
Run the unit tests from the browser.
 * Browse to.

Writing Unit Test for Modules

 * Todo

Write Testable Code

 * Todo

TestSwarm

 * Todo


 * On Toolserver: http://toolserver.org/~krinkle/testswarm/
 * For core modules a cronjob automatically populates tests under user MediaWiki (previously (pre-), KrinkleBot).