phpunit: Load extension unit tests for --testsuite=skins
authorjdlrobson <jdlrobson@gmail.com>
Mon, 17 Jul 2017 20:38:01 +0000 (13:38 -0700)
committerKrinkle <krinklemail@gmail.com>
Tue, 18 Jul 2017 00:43:02 +0000 (00:43 +0000)
Skins, like extensions, can register PHPUnit tests.
The testsuite interface in PHPUnit is designed to execute one run only,
so this should be based on the semantic entry of "skin jobs".
Changing the Jenkins job to run both doesn't work (only one value accepted).
Working around by running phpunit twice also seems wrong.

Bug: T170880
Change-Id: Ic04f4a842b2912574826b01b00d49db93d51c99b

tests/phpunit/suite.xml

index 7babcac..2f19c81 100644 (file)
@@ -33,6 +33,7 @@
                <testsuite name="skins">
                        <directory>skins</directory>
                        <directory>structure</directory>
+                       <file>suites/ExtensionsTestSuite.php</file>
                        <file>suites/LessTestSuite.php</file>
                </testsuite>
                <!-- As there is a class Maintenance, we cannot use the name "maintenance" directly -->