phpunit.xml.dist 3.77 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
         beStrictAboutChangesToGlobalState="true"
12
         failOnWarning="true"
13 14
         printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter"
         cacheResult="false">
15 16 17 18 19
  <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"/>
20
    <!-- Example SIMPLETEST_BASE_URL value: http://localhost -->
21
    <env name="SIMPLETEST_BASE_URL" value=""/>
22
    <!-- Example SIMPLETEST_DB value: mysql://username:password@localhost/databasename#table_prefix -->
23
    <env name="SIMPLETEST_DB" value=""/>
24
    <!-- Example BROWSERTEST_OUTPUT_DIRECTORY value: /path/to/webroot/sites/simpletest/browser_output -->
25
    <env name="BROWSERTEST_OUTPUT_DIRECTORY" value=""/>
26 27 28 29 30
    <!-- To have browsertest output use an alternative base URL. For example if
     SIMPLETEST_BASE_URL is an internal DDEV URL, you can set this to the
     external DDev URL so you can follow the links directly.
    -->
    <env name="BROWSERTEST_OUTPUT_BASE_URL" value=""/>
31 32
    <!-- To disable deprecation testing completely uncomment the next line. -->
    <!-- <env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/> -->
33
    <!-- Example for changing the driver class for mink tests MINK_DRIVER_CLASS value: 'Drupal\FunctionalJavascriptTests\DrupalSelenium2Driver' -->
34
    <env name="MINK_DRIVER_CLASS" value=''/>
35
    <!-- Example for changing the driver args to mink tests MINK_DRIVER_ARGS value: '["http://127.0.0.1:8510"]' -->
36
    <env name="MINK_DRIVER_ARGS" value=''/>
37
    <!-- Example for changing the driver args to webdriver tests MINK_DRIVER_ARGS_WEBDRIVER value: '["chrome", { "chromeOptions": { "w3c": false } }, "http://localhost:4444/wd/hub"]' For using the Firefox browser, replace "chrome" with "firefox" -->
38
    <env name="MINK_DRIVER_ARGS_WEBDRIVER" value=''/>
39
  </php>
40
  <testsuites>
41
    <testsuite name="unit">
42
      <file>./tests/TestSuites/UnitTestSuite.php</file>
43
    </testsuite>
44
    <testsuite name="kernel">
45
      <file>./tests/TestSuites/KernelTestSuite.php</file>
46
    </testsuite>
47
    <testsuite name="functional">
48
      <file>./tests/TestSuites/FunctionalTestSuite.php</file>
49
    </testsuite>
50
    <testsuite name="functional-javascript">
51
      <file>./tests/TestSuites/FunctionalJavascriptTestSuite.php</file>
52
    </testsuite>
53 54 55
    <testsuite name="build">
      <file>./tests/TestSuites/BuildTestSuite.php</file>
    </testsuite>
56
  </testsuites>
57
  <listeners>
58
    <listener class="\Drupal\Tests\Listeners\DrupalListener">
59
    </listener>
60
  </listeners>
61 62
  <!-- Filter for coverage reports. -->
  <filter>
63 64 65
    <whitelist>
      <directory>./includes</directory>
      <directory>./lib</directory>
66
      <!-- Extensions can have their own test directories, so exclude those. -->
67
      <directory>./modules</directory>
68 69 70 71
      <exclude>
        <directory>./modules/*/src/Tests</directory>
        <directory>./modules/*/tests</directory>
      </exclude>
72
      <directory>../modules</directory>
73 74 75 76 77 78
      <exclude>
        <directory>../modules/*/src/Tests</directory>
        <directory>../modules/*/tests</directory>
        <directory>../modules/*/*/src/Tests</directory>
        <directory>../modules/*/*/tests</directory>
      </exclude>
79 80
      <directory>../sites</directory>
     </whitelist>
81
  </filter>
82
</phpunit>