Manual:Unit testing

Unit testing in MediaWiki is performed using the following two frameworks for the PHP backend and JavaScript frontend respectively:
 * [http://www.phpunit.de/ PHPUnit]
 * [http://qunitjs.com/ QUnit]

For more information about how these are used in the MediaWiki infrastructure, the following manual pages have been written:
 * php-test>Special:MyLanguage/Manual:PHP unit testing|Manual:PHP unit testing
 * js-test>Special:MyLanguage/Manual:JavaScript unit testing|Manual:JavaScript unit testing

Unit tests should follow [http://www.artima.com/weblogs/viewpost.jsp?thread=126923 A Set of Unit Testing Rules] by Michael Feathers.