PHPUnit has a timeout protection system which let us put tests in three categories having different timeout (default: 1s, 10s, 60s). The timeout only happens when using strict mode and having PHPUnit Invoker installed. Recently, the continuous integration server has been upgraded and the PHPUnit Invoker was installed to let us run a serie of tests related to dumping the database to XML. They do need some timeout system. Suddenly, some tests started failing. By default all tests are in the 1 second timeout group. Since we use a sqlite backend and the server hard disk can get busy, some test can take more than one second to execute. This patch raise the default (small group) timeout to 2seconds and explicitly define the value for the two other groups (medium and large) using PHPUnit default values. Change-Id: I2f5613b0c0215023c413dec8e84804175d8c8d6e
49 lines
1.3 KiB
XML
49 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!-- colors don't work on Windows! -->
|
|
<phpunit bootstrap="./bootstrap.php"
|
|
colors="true"
|
|
backupGlobals="false"
|
|
convertErrorsToExceptions="true"
|
|
convertNoticesToExceptions="true"
|
|
convertWarningsToExceptions="true"
|
|
stopOnFailure="false"
|
|
timeoutForSmallTests="2"
|
|
timeoutForMediumTests="10"
|
|
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">
|
|
<file>StructureTest.php</file>
|
|
</testsuite>
|
|
<testsuite name="uploadfromurl">
|
|
<file>suites/UploadFromUrlTestSuite.php</file>
|
|
</testsuite>
|
|
<testsuite name="extensions">
|
|
<file>suites/ExtensionsTestSuite.php</file>
|
|
</testsuite>
|
|
</testsuites>
|
|
<groups>
|
|
<exclude>
|
|
<group>Utility</group>
|
|
<group>Broken</group>
|
|
<group>ParserFuzz</group>
|
|
<group>Stub</group>
|
|
</exclude>
|
|
</groups>
|
|
</phpunit>
|