phpunit.xml.dist 3.39 KB
Newer Older
1 2
<?xml version="1.0" encoding="UTF-8"?>

3
<!-- TODO set checkForUnintentionallyCoveredCode="true" once https://www.drupal.org/node/2626832 is resolved. -->
4 5 6
<!-- PHPUnit expects functional tests to be run with either a privileged user
 or your current system user. See core/tests/README.md and
 https://www.drupal.org/node/2116263 for details.
7
-->
8 9 10
<phpunit bootstrap="tests/bootstrap.php" colors="true"
         beStrictAboutTestsThatDoNotTestAnything="true"
         beStrictAboutOutputDuringTests="true"
11 12
         beStrictAboutChangesToGlobalState="true"
         printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter">
13 14 15 16 17
  <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"/>
18
    <!-- Example SIMPLETEST_BASE_URL value: http://localhost -->
19
    <env name="SIMPLETEST_BASE_URL" value=""/>
20
    <!-- Example SIMPLETEST_DB value: mysql://username:password@localhost/databasename#table_prefix -->
21
    <env name="SIMPLETEST_DB" value=""/>
22
    <!-- Example BROWSERTEST_OUTPUT_DIRECTORY value: /path/to/webroot/sites/simpletest/browser_output -->
23
    <env name="BROWSERTEST_OUTPUT_DIRECTORY" value=""/>
24 25
    <!-- To disable deprecation testing completely uncomment the next line. -->
    <!-- <env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/> -->
26
    <!-- Example for changing the driver class for mink tests MINK_DRIVER_CLASS value: 'Drupal\FunctionalJavascriptTests\DrupalSelenium2Driver' -->
27 28
    <!-- Example for changing the driver args to mink tests MINK_DRIVER_ARGS value: '["http://127.0.0.1:8510"]' -->
    <!-- Example for changing the driver args to phantomjs tests MINK_DRIVER_ARGS_PHANTOMJS value: '["http://127.0.0.1:8510"]' -->
29
    <!-- Example for changing the driver args to webdriver tests MINK_DRIVER_ARGS_WEBDRIVER value: '["firefox", null, "http://localhost:4444/wd/hub"]' -->
30
  </php>
31
  <testsuites>
32
    <testsuite name="unit">
33
      <file>./tests/TestSuites/UnitTestSuite.php</file>
34
    </testsuite>
35
    <testsuite name="kernel">
36
      <file>./tests/TestSuites/KernelTestSuite.php</file>
37
    </testsuite>
38
    <testsuite name="functional">
39
      <file>./tests/TestSuites/FunctionalTestSuite.php</file>
40
    </testsuite>
41
    <testsuite name="functional-javascript">
42
      <file>./tests/TestSuites/FunctionalJavascriptTestSuite.php</file>
43
    </testsuite>
44
  </testsuites>
45
  <listeners>
46
    <listener class="\Drupal\Tests\Listeners\DrupalListener">
47
    </listener>
48
    <!-- The Symfony deprecation listener has to come after the Drupal listener -->
49 50
    <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
    </listener>
51
  </listeners>
52 53
  <!-- Filter for coverage reports. -->
  <filter>
54 55 56
    <whitelist>
      <directory>./includes</directory>
      <directory>./lib</directory>
57
      <!-- Extensions can have their own test directories, so exclude those. -->
58
      <directory>./modules</directory>
59 60 61 62
      <exclude>
        <directory>./modules/*/src/Tests</directory>
        <directory>./modules/*/tests</directory>
      </exclude>
63
      <directory>../modules</directory>
64 65 66 67 68 69
      <exclude>
        <directory>../modules/*/src/Tests</directory>
        <directory>../modules/*/tests</directory>
        <directory>../modules/*/*/src/Tests</directory>
        <directory>../modules/*/*/tests</directory>
      </exclude>
70 71
      <directory>../sites</directory>
     </whitelist>
72
  </filter>
73
</phpunit>