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