phpunit.xml.dist 4.05 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
26
27
28
    <!-- 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=""/>
29
30
    <!-- To disable deprecation testing completely uncomment the next line. -->
    <!-- <env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/> -->
31
    <!-- Example for changing the driver class for mink tests MINK_DRIVER_CLASS value: 'Drupal\FunctionalJavascriptTests\DrupalSelenium2Driver' -->
32
    <env name="MINK_DRIVER_CLASS" value=''/>
33
    <!-- Example for changing the driver args to mink tests MINK_DRIVER_ARGS value: '["http://127.0.0.1:8510"]' -->
34
    <env name="MINK_DRIVER_ARGS" value=''/>
35
    <!-- Example for changing the driver args to phantomjs tests MINK_DRIVER_ARGS_PHANTOMJS value: '["http://127.0.0.1:8510"]' -->
36
    <env name="MINK_DRIVER_ARGS_PHANTOMJS" 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
    <!-- The Symfony deprecation listener has to come after the Drupal listener -->
61
62
    <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
    </listener>
63
  </listeners>
64
65
  <!-- Filter for coverage reports. -->
  <filter>
66
67
68
    <whitelist>
      <directory>./includes</directory>
      <directory>./lib</directory>
69
      <!-- Extensions can have their own test directories, so exclude those. -->
70
      <directory>./modules</directory>
71
72
73
74
      <exclude>
        <directory>./modules/*/src/Tests</directory>
        <directory>./modules/*/tests</directory>
      </exclude>
75
      <directory>../modules</directory>
76
77
78
79
80
81
      <exclude>
        <directory>../modules/*/src/Tests</directory>
        <directory>../modules/*/tests</directory>
        <directory>../modules/*/*/src/Tests</directory>
        <directory>../modules/*/*/tests</directory>
      </exclude>
82
83
      <directory>../sites</directory>
     </whitelist>
84
  </filter>
85
</phpunit>