phpunit.xml.dist 2.75 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 11
<phpunit bootstrap="tests/bootstrap.php" colors="true"
         beStrictAboutTestsThatDoNotTestAnything="true"
         beStrictAboutOutputDuringTests="true"
         beStrictAboutChangesToGlobalState="true"
12
         checkForUnintentionallyCoveredCode="false">
13 14 15 16 17 18 19 20
<!-- TODO set printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter" once
 https://youtrack.jetbrains.com/issue/WI-24808 is resolved. Drupal provides a
 result printer that links to the html output results for functional tests.
 Unfortunately, this breaks the output of PHPStorm's PHPUnit runner. However, if
 using the command line you can add
 - -printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter" to use it (note
 there should be no spaces between the hyphens).
-->
21 22 23 24 25
  <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"/>
26
    <!-- Example SIMPLETEST_BASE_URL value: http://localhost -->
27
    <env name="SIMPLETEST_BASE_URL" value=""/>
28
    <!-- Example SIMPLETEST_DB value: mysql://username:password@localhost/databasename#table_prefix -->
29
    <env name="SIMPLETEST_DB" value=""/>
30
    <!-- Example BROWSERTEST_OUTPUT_DIRECTORY value: /path/to/webroot/sites/simpletest/browser_output -->
31
    <env name="BROWSERTEST_OUTPUT_DIRECTORY" value=""/>
32
  </php>
33
  <testsuites>
34
    <testsuite name="unit">
35
      <file>./tests/TestSuites/UnitTestSuite.php</file>
36
    </testsuite>
37
    <testsuite name="kernel">
38
      <file>./tests/TestSuites/KernelTestSuite.php</file>
39
    </testsuite>
40
    <testsuite name="functional">
41
      <file>./tests/TestSuites/FunctionalTestSuite.php</file>
42
    </testsuite>
43
    <testsuite name="functional-javascript">
44
      <file>./tests/TestSuites/FunctionalJavascriptTestSuite.php</file>
45
    </testsuite>
46
  </testsuites>
47
  <listeners>
48 49
    <listener class="\Drupal\Tests\Listeners\DrupalStandardsListener">
    </listener>
50
  </listeners>
51 52
  <!-- Filter for coverage reports. -->
  <filter>
53 54 55 56 57 58
    <whitelist>
      <directory>./includes</directory>
      <directory>./lib</directory>
      <directory>./modules</directory>
      <directory>../modules</directory>
      <directory>../sites</directory>
59 60 61 62 63
      <!-- By definition test classes have no tests. -->
      <exclude>
        <directory suffix="Test.php">./</directory>
        <directory suffix="TestBase.php">./</directory>
      </exclude>
64
     </whitelist>
65
  </filter>
66
</phpunit>