Extension:MWUnit/Maintenance scripts

From mediawiki.org

Maintenance scripts are used to perform various administrative tasks on a wiki. These scripts are deployed in the maintenance directory of the MWUnit extension.

The following maintenance scripts are available:

runTests.php[edit]

This maintenance script is the command-line test runner for MWUnit.

rebuildTestsIndex.php[edit]

This maintenance script rebuilds the index of tests. It does this by running through all the pages in the NS_TEST namespace and letting the MediaWiki parser call the functions that re-save each test in the database. This effectively rebuilds the index of tests.

This script is quite resource-heavy and should only be run when you notice tests are missing or are not run properly.

updateContentModels.php[edit]

This maintenance script updates the content models of all pages in the NS_TEST namespace to the "Test" content model introduced in version 0.14. This maintenance script may be required when updating from before that version.