|
1 | | -<?xml version="1.0" encoding="UTF-8" ?> |
2 | | -<phpunit |
3 | | - convertErrorsToExceptions="true" |
4 | | - colors="true" |
5 | | - convertWarningsToExceptions="true" |
6 | | - forceCoversAnnotation="false" |
7 | | - stopOnFailure="true" |
8 | | -> |
9 | | - <php> |
10 | | - <ini name="memory_limit" value="-1" /> |
11 | | - <env name="WEB_HOST" value="127.0.0.1" /> |
12 | | - <env name="WEB_HOST" value="8888" /> |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
13 | 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="../../../core/tests/bootstrap.php" |
| 9 | + colors="true" |
| 10 | + verbose="true" |
| 11 | + beStrictAboutTestsThatDoNotTestAnything="true" |
| 12 | + beStrictAboutOutputDuringTests="true" |
| 13 | + beStrictAboutChangesToGlobalState="true"> |
| 14 | + <!-- TODO set printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter" once |
| 15 | + https://youtrack.jetbrains.com/issue/WI-24808 is resolved. Drupal provides a |
| 16 | + result printer that links to the html output results for functional tests. |
| 17 | + Unfortunately, this breaks the output of PHPStorm's PHPUnit runner. However, if |
| 18 | + using the command line you can add |
| 19 | + - -printer="\Drupal\Tests\Listeners\HtmlOutputPrinter" to use it (note there |
| 20 | + should be no spaces between the hyphens). |
| 21 | + --> |
| 22 | + <php> |
| 23 | + <!-- Set error reporting to E_ALL. --> |
| 24 | + <ini name="error_reporting" value="32767"/> |
| 25 | + <!-- Do not limit the amount of memory tests take to run. --> |
| 26 | + <ini name="memory_limit" value="-1"/> |
| 27 | + <!-- Example SIMPLETEST_BASE_URL value: http://localhost --> |
| 28 | + <!-- Example SIMPLETEST_DB value: mysql://username:password@localhost/databasename#table_prefix --> |
| 29 | + <!-- Example BROWSERTEST_OUTPUT_DIRECTORY value: ../../../sites/simpletest/browser_output --> |
| 30 | + <ini name="BROWSERTEST_OUTPUT_DIRECTORY" value="../../../sites/simpletest/browser_output"/> |
| 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"]' --> |
14 | 37 | </php> |
15 | 38 | <testsuites> |
16 | 39 | <testsuite name="ContentaFunctional"> |
17 | 40 | <directory suffix="Test.php">tests/src/Functional/</directory> |
18 | 41 | </testsuite> |
19 | 42 | </testsuites> |
| 43 | + <listeners> |
| 44 | + <listener class="\Drupal\Tests\Listeners\DrupalListener"> |
| 45 | + </listener> |
| 46 | + <!-- The Symfony deprecation listener has to come after the Drupal listener --> |
| 47 | + <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"> |
| 48 | + </listener> |
| 49 | + </listeners> |
| 50 | + <!-- Filter for coverage reports. --> |
20 | 51 | <filter> |
21 | 52 | <whitelist> |
22 | | - <directory>tests/src/</directory> |
| 53 | + <directory>./tests/src/</directory> |
23 | 54 | </whitelist> |
24 | 55 | </filter> |
25 | 56 | </phpunit> |
0 commit comments