Skip to content

Github mirror of MediaWiki extension GenerateMochaConfig - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

License

Notifications You must be signed in to change notification settings

wikimedia/mediawiki-extensions-GenerateMochaConfig

Repository files navigation

MediaWiki extension: GenerateMochaConfig

GenerateMochaConfig is a MediaWiki maintenance extension that generates a JSON that can be used to run Mocha tests for all enabled extensions with a tests/mocha directory.

To enable it, first download a copy of the GenerateMochaConfig directory and put it into your extensions directory. Then put the following at the end of your LocalSettings.php:

wfLoadExtension ( 'GenerateMochaConfig' );

Usage

To get a Mocha configuration JSON for all enabled extensions run:

$ php extensions/GenerateMochaConfig/maintenance/generateMochaConfig.php

To merge the Mocha configuration JSON with an existing mocharc.json file run:

$ php extensions/GenerateMochaConfig/maintenance/generateMochaConfig.php --config <filename>

About

Github mirror of MediaWiki extension GenerateMochaConfig - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published