Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 985 Bytes

testing.md

File metadata and controls

26 lines (22 loc) · 985 Bytes

Testing

This skin provides unit tests that can be run by a continuous integration platform or manually by executing the mw-phpunit-runner.php script or phpunit together with the PHPUnit configuration file found in the root directory of the skin.

php tests/mw-phpunit-runner.php [options]

Useful optional parameters:

--coverage-html ../../../report
--debug

To test against an external HTML validation service (http://validator.w3.org/check) set the USE_EXTERNAL_HTML_VALIDATOR setting to true in phpunit.xml.dist. Please be careful with their resources and use this setting sparingly. If you do this, you may also want to set printerClass="Skins\Chameleon\Tests\Util\ColoringTextUIResultPrinter" as an additional attribute in the phpunit element to colorize then tests that connect to the external service.