|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<phpunit bootstrap="./public/core/tests/bootstrap.php" colors="true" |
| 2 | +<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + bootstrap="./public/core/tests/bootstrap.php" |
| 4 | + colors="true" |
3 | 5 | beStrictAboutTestsThatDoNotTestAnything="true" |
4 | 6 | beStrictAboutOutputDuringTests="true" |
5 | 7 | beStrictAboutChangesToGlobalState="true" |
6 | | - beStrictAboutCoversAnnotation="false" |
7 | 8 | failOnRisky="true" |
8 | 9 | failOnWarning="true" |
9 | | - failOnSkipped="true" |
10 | | - verbose="true" |
11 | | - printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter" |
12 | | - > |
13 | | -<php> |
14 | | - <!-- Set error reporting to E_ALL. --> |
15 | | - <ini name="error_reporting" value="32767"/> |
| 10 | + displayDetailsOnTestsThatTriggerErrors="true" |
| 11 | + displayDetailsOnTestsThatTriggerWarnings="true" |
| 12 | + displayDetailsOnTestsThatTriggerDeprecations="true" |
| 13 | + cacheResult="false" |
| 14 | + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" |
| 15 | + cacheDirectory=".phpunit.cache"> |
| 16 | + <php> |
| 17 | + <!-- Set error reporting to E_ALL. --> |
| 18 | + <ini name="error_reporting" value="32767"/> |
16 | 19 | <!-- Do not limit the amount of memory tests take to run. --> |
17 | | - <ini name="memory_limit" value="-1"/> |
18 | | - <env name="MINK_DRIVER_ARGS_WEBDRIVER" value='["chrome", {"browserName":"chrome", "goog:chromeOptions":{"w3c": true, "args":["--no-sandbox", "--ignore-certificate-errors", "--allow-insecure-localhost", "--headless", "--dns-prefetch-disable"]}}, "http://chromium:4444"]' /> |
19 | | - <env name="DTT_MINK_DRIVER_ARGS" value='["chrome", {"browserName":"chrome", "goog:chromeOptions":{"w3c": true, "args":["--no-sandbox","--ignore-certificate-errors", "--allow-insecure-localhost", "--headless", "--dns-prefetch-disable"]}}, "http://chromium:4444"]'/> |
20 | | - <env name="DTT_API_OPTIONS" value='{"socketTimeout": 360, "domWaitTimeout": 3600000}' /> |
21 | | - <env name="DTT_API_URL" value="http://chromium:9222"/> |
22 | | - <env name="DTT_BASE_URL" value="https://app"/> |
23 | | -</php> |
24 | | -<testsuites> |
| 20 | + <ini name="memory_limit" value="-1"/> |
| 21 | + <env name="MINK_DRIVER_ARGS_WEBDRIVER" value='["chrome", {"browserName":"chrome", "goog:chromeOptions":{"w3c": true, "args":["--no-sandbox", "--ignore-certificate-errors", "--allow-insecure-localhost", "--headless", "--dns-prefetch-disable"]}}, "http://chromium:4444"]' /> |
| 22 | + <env name="DTT_MINK_DRIVER_ARGS" value='["chrome", {"browserName":"chrome", "goog:chromeOptions":{"w3c": true, "args":["--no-sandbox","--ignore-certificate-errors", "--allow-insecure-localhost", "--headless", "--dns-prefetch-disable"]}}, "http://chromium:4444"]'/> |
| 23 | + <env name="DTT_API_OPTIONS" value='{"socketTimeout": 360, "domWaitTimeout": 3600000}' /> |
| 24 | + <env name="DTT_API_URL" value="http://chromium:9222"/> |
| 25 | + <env name="DTT_BASE_URL" value="https://app"/> |
| 26 | + <env name="SYMFONY_DEPRECATIONS_HELPER" value="ignoreFile=../.deprecation-ignore.txt" /> |
| 27 | + </php> |
| 28 | + <extensions> |
| 29 | + <!-- Functional tests HTML output logging. --> |
| 30 | + <bootstrap class="Drupal\TestTools\Extension\HtmlLogging\HtmlOutputLogger"> |
| 31 | + <!-- By default browser tests print the individual links in the test run |
| 32 | + report. To avoid overcrowding the output in CI environments, you can |
| 33 | + set the "verbose" parameter or the "BROWSERTEST_OUTPUT_VERBOSE" |
| 34 | + environment variable to "false". In GitLabCI, the output is saved |
| 35 | + anyway as an artifact that can be browsed or downloaded from Gitlab. |
| 36 | + --> |
| 37 | + <parameter name="verbose" value="true"/> |
| 38 | + </bootstrap> |
| 39 | + <bootstrap class="DG\BypassFinals\PHPUnitExtension"/> |
| 40 | + </extensions><testsuites> |
25 | 41 | <testsuite name="unit"> |
26 | 42 | <directory>./public/modules/custom/*/tests/src/Unit</directory> |
27 | 43 | <directory>./public/themes/custom/*/tests/src/Unit</directory> |
|
45 | 61 | <testsuite name="existing-site"> |
46 | 62 | <directory>./tests/dtt/src/ExistingSite</directory> |
47 | 63 | <directory>./public/modules/custom/*/tests/src/ExistingSite</directory> |
48 | | - <directory>./public/modules/contrib/*/tests/src/ExistingSite</directory> |
| 64 | + <directory>./public/themes/custom/*/tests/src/ExistingSite</directory> |
| 65 | + <directory>./public/profiles/custom/*/tests/src/ExistingSite</directory> |
49 | 66 | </testsuite> |
50 | 67 | <testsuite name="existing-site-javascript"> |
51 | 68 | <directory>./tests/dtt/src/ExistingSiteJavascript</directory> |
52 | 69 | <directory>./public/modules/custom/*/tests/src/ExistingSiteJavascript</directory> |
53 | | - <directory>./public/modules/contrib/*/tests/src/ExistingSiteJavascript</directory> |
| 70 | + <directory>./public/themes/custom/*/tests/src/ExistingSiteJavascript</directory> |
| 71 | + <directory>./public/profiles/custom/*/tests/src/ExistingSiteJavascript</directory> |
54 | 72 | </testsuite> |
55 | 73 | </testsuites> |
56 | | -<listeners> |
57 | | - <listener class="\Drupal\Tests\Listeners\DrupalListener"> |
58 | | - </listener> |
59 | | -</listeners> |
60 | | -<coverage processUncoveredFiles="true"> |
61 | | - <include> |
62 | | - <directory suffix=".php">./public/modules/custom/*/src</directory> |
63 | | - <directory suffix=".php">./public/themes/custom/*/src</directory> |
64 | | - <directory suffix=".php">./public/profiles/custom/*/src</directory> |
65 | | - <file>./public/modules/custom/*/*.module</file> |
66 | | - <file>./public/themes/custom/*/*.theme</file> |
67 | | - <file>./public/profiles/custom/*/*.profile</file> |
68 | | - </include> |
69 | | - <exclude> |
70 | | - <directory>./public/modules/custom/*/src/Tests</directory> |
71 | | - <directory>./public/themes/custom/*/src/Tests</directory> |
72 | | - <directory>./public/profiles/custom/*/src/Tests</directory> |
73 | | - </exclude> |
74 | | -</coverage> |
| 74 | + <source ignoreSuppressionOfDeprecations="true"> |
| 75 | + <include> |
| 76 | + <directory suffix=".php">./public/modules/custom/*/src</directory> |
| 77 | + <directory suffix=".php">./public/themes/custom/*/src</directory> |
| 78 | + <directory suffix=".php">./public/profiles/custom/*/src</directory> |
| 79 | + <file>./public/modules/custom/*/*.module</file> |
| 80 | + <file>./public/themes/custom/*/*.theme</file> |
| 81 | + <file>./public/profiles/custom/*/*.profile</file> |
| 82 | + </include> |
| 83 | + <exclude> |
| 84 | + <directory>./public/modules/custom/*/src/Tests</directory> |
| 85 | + <directory>./public/themes/custom/*/src/Tests</directory> |
| 86 | + <directory>./public/profiles/custom/*/src/Tests</directory> |
| 87 | + </exclude> |
| 88 | + </source> |
75 | 89 | </phpunit> |
0 commit comments