wiki.techinc.nl/tests/phpunit/suite.xml
Umherirrender 9bcd6f7f80 tests: Move all language converter tests into /includes/
Move tests from /languages/ to /includes/language/ similiar to the
classes in f5644ba
Clean up suite config too not longer run that folder as test,
remove from coverage, there no php files to cover

Remove converter tests from Language*Test files,
all identical to the *ConverterTest cases (or remove the whole file)

Change-Id: I098ba241bd61d8ed2ee9b65393416077e3544e79
2023-02-01 20:10:56 +01:00

92 lines
2.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./bootstrap.maintenance.php"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
colors="true"
backupGlobals="false"
convertDeprecationsToExceptions="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="true"
failOnWarning="true"
stopOnFailure="false"
failOnRisky="true"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutOutputDuringTests="true"
verbose="false"
printerClass="MediaWikiPHPUnitResultPrinter"
stderr="true">
<!-- Output only to stderr to avoid "Headers already sent" problems -->
<php>
<ini name="memory_limit" value="-1" />
<ini name="max_execution_time" value="0" />
</php>
<testsuites>
<testsuite name="includes">
<directory>includes</directory>
</testsuite>
<testsuite name="parsertests">
<file>suites/CoreParserTestSuite.php</file>
<file>suites/ExtensionsParserTestSuite.php</file>
</testsuite>
<testsuite name="skins">
<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 -->
<testsuite name="maintenance_suite">
<directory>maintenance</directory>
</testsuite>
<testsuite name="structure">
<directory>structure</directory>
</testsuite>
<testsuite name="tests">
<directory>tests</directory>
</testsuite>
<testsuite name="extensions">
<directory>structure</directory>
<file>suites/ExtensionsTestSuite.php</file>
<file>suites/ExtensionsParserTestSuite.php</file>
<file>suites/LessTestSuite.php</file>
</testsuite>
<testsuite name="unit">
<directory>unit</directory>
</testsuite>
<testsuite name="integration">
<directory>integration</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>Broken</group>
</exclude>
</groups>
<coverage includeUncoveredFiles="true">
<include>
<directory suffix=".php">../../includes</directory>
<directory suffix=".php">../../maintenance</directory>
</include>
<exclude>
<directory suffix=".php">../../maintenance/benchmarks</directory>
</exclude>
</coverage>
<listeners>
<listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener">
<arguments>
<array>
<element key="slowThreshold">
<integer>50</integer>
</element>
<element key="reportLength">
<integer>50</integer>
</element>
</array>
</arguments>
</listener>
</listeners>
<extensions>
<extension class="MediaWikiLoggerPHPUnitExtension" />
</extensions>
</phpunit>