56 lines
2.1 KiB
XML
56 lines
2.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<phpunit bootstrap="tests/bootstrap.php" colors="true">
|
|
<php>
|
|
<!-- Set error reporting to E_ALL. -->
|
|
<ini name="error_reporting" value="32767"/>
|
|
<!-- Do not limit the amount of memory tests take to run. -->
|
|
<ini name="memory_limit" value="-1"/>
|
|
<env name="SIMPLETEST_BASE_URL" value=""/>
|
|
<!-- Example SIMPLETEST_BASE_URL value: http://localhost -->
|
|
<env name="SIMPLETEST_DB" value=""/>
|
|
<!-- Example SIMPLETEST_DB value: mysql://username:password@localhost/databasename#table_prefix -->
|
|
</php>
|
|
<testsuites>
|
|
<testsuite name="unit">
|
|
<directory>./tests/Drupal/Tests</directory>
|
|
<directory>./modules/*/tests/src/Unit</directory>
|
|
<directory>../modules/*/tests/src/Unit</directory>
|
|
<directory>../sites/*/modules/*/tests/src/Unit</directory>
|
|
<!-- Exclude Composer's vendor directory so we don't run tests there. -->
|
|
<exclude>./vendor</exclude>
|
|
<!-- Exclude Drush tests. -->
|
|
<exclude>./drush/tests</exclude>
|
|
</testsuite>
|
|
<testsuite name="functional">
|
|
<directory>./tests/Drupal/FunctionalTests</directory>
|
|
<directory>./modules/*/tests/src/Functional</directory>
|
|
<directory>../modules/*/tests/src/Functional</directory>
|
|
<directory>../sites/*/modules/*/tests/src/Functional</directory>
|
|
<!-- Exclude Composer's vendor directory so we don't run tests there. -->
|
|
<exclude>./vendor</exclude>
|
|
<!-- Exclude Drush tests. -->
|
|
<exclude>./drush/tests</exclude>
|
|
</testsuite>
|
|
</testsuites>
|
|
<listeners>
|
|
<listener class="\Drupal\Tests\Standards\DrupalStandardsListener">
|
|
</listener>
|
|
</listeners>
|
|
<!-- Filter for coverage reports. -->
|
|
<filter>
|
|
<whitelist>
|
|
<directory>./includes</directory>
|
|
<directory>./lib</directory>
|
|
<directory>./modules</directory>
|
|
<directory>../modules</directory>
|
|
<directory>../sites</directory>
|
|
<!-- By definition test classes have no tests. -->
|
|
<exclude>
|
|
<directory suffix="Test.php">./</directory>
|
|
<directory suffix="TestBase.php">./</directory>
|
|
</exclude>
|
|
</whitelist>
|
|
</filter>
|
|
</phpunit>
|