The tests in the structure PHPUnit testsuite are used to verify the Autoloader, ResourceLoader definitions and some basic other tests. They are not run by Jenkins for MediaWiki extensions since we invoke: phpunit.php --testsuite extensions Add the structure directory to the 'extensions' testsuite. That will start enforcing them on all extensions, so need to be merged with care. We will want to backport this patch on all release branches we support and make sure they pass for all extensions/branches :-/ Bug: T78798 Change-Id: Icb88fb3f10d203cfcb61c36c9c92864b92d6739c
65 lines
1.8 KiB
XML
65 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
Colors don't work on Windows!
|
|
phpunit.php enables colors for other OSs at runtime
|
|
-->
|
|
<phpunit bootstrap="./bootstrap.php"
|
|
colors="false"
|
|
backupGlobals="false"
|
|
convertErrorsToExceptions="true"
|
|
convertNoticesToExceptions="true"
|
|
convertWarningsToExceptions="true"
|
|
forceCoversAnnotation="true"
|
|
stopOnFailure="false"
|
|
timeoutForSmallTests="10"
|
|
timeoutForMediumTests="30"
|
|
timeoutForLargeTests="60"
|
|
strict="true"
|
|
verbose="true">
|
|
<testsuites>
|
|
<testsuite name="includes">
|
|
<directory>includes</directory>
|
|
</testsuite>
|
|
<testsuite name="languages">
|
|
<directory>languages</directory>
|
|
</testsuite>
|
|
<testsuite name="skins">
|
|
<directory>skins</directory>
|
|
</testsuite>
|
|
<!-- As there is a class Maintenance, we cannot use the
|
|
name "maintenance" directly -->
|
|
<testsuite name="maintenance_suite">
|
|
<directory>maintenance</directory>
|
|
</testsuite>
|
|
<testsuite name="structure">
|
|
<directory>structure</directory>
|
|
</testsuite>
|
|
<testsuite name="uploadfromurl">
|
|
<file>suites/UploadFromUrlTestSuite.php</file>
|
|
</testsuite>
|
|
<testsuite name="extensions">
|
|
<directory>structure</directory>
|
|
<file>suites/ExtensionsTestSuite.php</file>
|
|
<file>suites/ExtensionsParserTestSuite.php</file>
|
|
<file>suites/LessTestSuite.php</file>
|
|
</testsuite>
|
|
</testsuites>
|
|
<groups>
|
|
<exclude>
|
|
<group>Utility</group>
|
|
<group>Broken</group>
|
|
<group>ParserFuzz</group>
|
|
<group>Stub</group>
|
|
</exclude>
|
|
</groups>
|
|
<filter>
|
|
<whitelist addUncoveredFilesFromWhitelist="true">
|
|
<directory suffix=".php">../../includes</directory>
|
|
<directory suffix=".php">../../languages</directory>
|
|
<directory suffix=".php">../../maintenance</directory>
|
|
<directory suffix=".php">../../resources</directory>
|
|
<directory suffix=".php">../../skins</directory>
|
|
</whitelist>
|
|
</filter>
|
|
</phpunit>
|