Chris@0
|
1 <?xml version="1.0" encoding="UTF-8"?>
|
Chris@0
|
2
|
Chris@0
|
3 <!-- TODO set checkForUnintentionallyCoveredCode="true" once https://www.drupal.org/node/2626832 is resolved. -->
|
Chris@0
|
4 <!-- PHPUnit expects functional tests to be run with either a privileged user
|
Chris@0
|
5 or your current system user. See core/tests/README.md and
|
Chris@0
|
6 https://www.drupal.org/node/2116263 for details.
|
Chris@0
|
7 -->
|
Chris@0
|
8 <phpunit bootstrap="tests/bootstrap.php" colors="true"
|
Chris@0
|
9 beStrictAboutTestsThatDoNotTestAnything="true"
|
Chris@0
|
10 beStrictAboutOutputDuringTests="true"
|
Chris@14
|
11 beStrictAboutChangesToGlobalState="true">
|
Chris@0
|
12 <!-- TODO set printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter" once
|
Chris@0
|
13 https://youtrack.jetbrains.com/issue/WI-24808 is resolved. Drupal provides a
|
Chris@0
|
14 result printer that links to the html output results for functional tests.
|
Chris@0
|
15 Unfortunately, this breaks the output of PHPStorm's PHPUnit runner. However, if
|
Chris@0
|
16 using the command line you can add
|
Chris@0
|
17 - -printer="\Drupal\Tests\Listeners\HtmlOutputPrinter" to use it (note there
|
Chris@0
|
18 should be no spaces between the hyphens).
|
Chris@0
|
19 -->
|
Chris@0
|
20 <php>
|
Chris@0
|
21 <!-- Set error reporting to E_ALL. -->
|
Chris@0
|
22 <ini name="error_reporting" value="32767"/>
|
Chris@0
|
23 <!-- Do not limit the amount of memory tests take to run. -->
|
Chris@0
|
24 <ini name="memory_limit" value="-1"/>
|
Chris@0
|
25 <!-- Example SIMPLETEST_BASE_URL value: http://localhost -->
|
Chris@0
|
26 <env name="SIMPLETEST_BASE_URL" value=""/>
|
Chris@0
|
27 <!-- Example SIMPLETEST_DB value: mysql://username:password@localhost/databasename#table_prefix -->
|
Chris@0
|
28 <env name="SIMPLETEST_DB" value=""/>
|
Chris@0
|
29 <!-- Example BROWSERTEST_OUTPUT_DIRECTORY value: /path/to/webroot/sites/simpletest/browser_output -->
|
Chris@0
|
30 <env name="BROWSERTEST_OUTPUT_DIRECTORY" value=""/>
|
Chris@17
|
31 <!-- To disable deprecation testing completely uncomment the next line. -->
|
Chris@17
|
32 <!-- <env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/> -->
|
Chris@14
|
33 <!-- Example for changing the driver class for mink tests MINK_DRIVER_CLASS value: 'Drupal\FunctionalJavascriptTests\DrupalSelenium2Driver' -->
|
Chris@14
|
34 <!-- Example for changing the driver args to mink tests MINK_DRIVER_ARGS value: '["http://127.0.0.1:8510"]' -->
|
Chris@14
|
35 <!-- Example for changing the driver args to phantomjs tests MINK_DRIVER_ARGS_PHANTOMJS value: '["http://127.0.0.1:8510"]' -->
|
Chris@14
|
36 <!-- Example for changing the driver args to webdriver tests MINK_DRIVER_ARGS_WEBDRIVER value: '["firefox", null, "http://localhost:4444/wd/hub"]' -->
|
Chris@0
|
37 </php>
|
Chris@0
|
38 <testsuites>
|
Chris@0
|
39 <testsuite name="unit">
|
Chris@0
|
40 <file>./tests/TestSuites/UnitTestSuite.php</file>
|
Chris@0
|
41 </testsuite>
|
Chris@0
|
42 <testsuite name="kernel">
|
Chris@0
|
43 <file>./tests/TestSuites/KernelTestSuite.php</file>
|
Chris@0
|
44 </testsuite>
|
Chris@0
|
45 <testsuite name="functional">
|
Chris@0
|
46 <file>./tests/TestSuites/FunctionalTestSuite.php</file>
|
Chris@0
|
47 </testsuite>
|
Chris@0
|
48 <testsuite name="functional-javascript">
|
Chris@0
|
49 <file>./tests/TestSuites/FunctionalJavascriptTestSuite.php</file>
|
Chris@0
|
50 </testsuite>
|
Chris@0
|
51 </testsuites>
|
Chris@0
|
52 <listeners>
|
Chris@14
|
53 <listener class="\Drupal\Tests\Listeners\DrupalListener">
|
Chris@14
|
54 </listener>
|
Chris@14
|
55 <!-- The Symfony deprecation listener has to come after the Drupal listener -->
|
Chris@0
|
56 <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
|
Chris@0
|
57 </listener>
|
Chris@0
|
58 </listeners>
|
Chris@0
|
59 <!-- Filter for coverage reports. -->
|
Chris@0
|
60 <filter>
|
Chris@0
|
61 <whitelist>
|
Chris@0
|
62 <directory>./includes</directory>
|
Chris@0
|
63 <directory>./lib</directory>
|
Chris@0
|
64 <directory>./modules</directory>
|
Chris@0
|
65 <directory>../modules</directory>
|
Chris@0
|
66 <directory>../sites</directory>
|
Chris@18
|
67 <!-- Exclude all test modules, tests etc -->
|
Chris@18
|
68 <exclude-pattern>*/tests/*</exclude-pattern>
|
Chris@0
|
69 </whitelist>
|
Chris@0
|
70 </filter>
|
Chris@0
|
71 </phpunit>
|