|
9 | 9 | beStrictAboutChangesToGlobalState="true" |
10 | 10 | beStrictAboutOutputDuringTests="true" |
11 | 11 | beStrictAboutTestsThatDoNotTestAnything="true" |
12 | | - bootstrap="web/core/tests/bootstrap.php" |
| 12 | + bootstrap="tests/phpunit/bootstrap.php" |
13 | 13 | cacheResult="false" |
14 | 14 | colors="true" |
15 | 15 | displayDetailsOnPhpunitDeprecations="true" |
|
31 | 31 | <ini name="error_reporting" value="32767"/> |
32 | 32 | <!-- Do not limit the amount of memory tests take to run. --> |
33 | 33 | <ini name="memory_limit" value="-1"/> |
34 | | - <!-- Example SIMPLETEST_BASE_URL value: http://localhost --> |
35 | | - <env name="SIMPLETEST_BASE_URL" value=""/> |
36 | | - <!-- Example SIMPLETEST_DB value: mysql://username:password@localhost/database_name#table_prefix --> |
37 | | - <env name="SIMPLETEST_DB" value=""/> |
| 34 | + <env name="SIMPLETEST_BASE_URL" value="http://nginx:8080"/> |
| 35 | + <env name="SIMPLETEST_DB" value="mysql://drupal:drupal@database/drupal"/> |
38 | 36 | <!-- By default, browser tests will output links that use the base URL set |
39 | 37 | in SIMPLETEST_BASE_URL. However, if your SIMPLETEST_BASE_URL is an internal |
40 | 38 | path (such as may be the case in a virtual or Docker-based environment), |
41 | 39 | you can set the base URL used in the browser test output links to something |
42 | 40 | reachable from your host machine here. This will allow you to follow them |
43 | 41 | directly and view the output. --> |
44 | | - <env name="BROWSERTEST_OUTPUT_BASE_URL" value=""/> |
| 42 | + <!-- This is populated dynamically in tests/phpunit/bootstrap.php --> |
| 43 | + <!-- <env name="BROWSERTEST_OUTPUT_BASE_URL" value=""/> --> |
45 | 44 | <!-- The environment variable SYMFONY_DEPRECATIONS_HELPER is used to configure |
46 | | - the behavior of the deprecation tests. |
47 | | - Drupal core's testing framework is setting this variable to its defaults. |
48 | | - Projects with their own requirements need to manage this variable |
49 | | - explicitly. |
| 45 | + the behavior of the deprecation tests. |
| 46 | + Drupal core's testing framework is setting this variable to its defaults. |
| 47 | + Projects with their own requirements need to manage this variable |
| 48 | + explicitly. |
50 | 49 | --> |
51 | 50 | <!-- To disable deprecation testing completely uncomment the next line. --> |
52 | 51 | <!-- <env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/> --> |
53 | 52 | <!-- Deprecation errors can be selectively ignored by specifying a file of |
54 | | - regular expression patterns for exclusion. |
55 | | - Uncomment the line below to specify a custom deprecations ignore file. |
56 | | - NOTE: it may be required to specify the full path to the file to run tests |
57 | | - correctly. |
| 53 | + regular expression patterns for exclusion. |
| 54 | + Uncomment the line below to specify a custom deprecations ignore file. |
| 55 | + NOTE: it may be required to specify the full path to the file to run tests |
| 56 | + correctly. |
58 | 57 | --> |
59 | 58 | <!-- <env name="SYMFONY_DEPRECATIONS_HELPER" value="ignoreFile=.deprecation-ignore.txt"/> --> |
60 | 59 | <!-- Example for changing the driver class for mink tests MINK_DRIVER_CLASS value: 'Drupal\FunctionalJavascriptTests\DrupalSelenium2Driver' --> |
61 | 60 | <env name="MINK_DRIVER_CLASS" value=""/> |
62 | 61 | <!-- Example for changing the driver args to mink tests MINK_DRIVER_ARGS value: '["http://127.0.0.1:8510"]' --> |
63 | 62 | <env name="MINK_DRIVER_ARGS" value=""/> |
64 | | - <!-- Example for changing the driver args to webdriver tests MINK_DRIVER_ARGS_WEBDRIVER value: '["chrome", { "goog:chromeOptions": { "w3c": false } }, "http://localhost:4444/wd/hub"]' For using the Firefox browser, replace "chrome" with "firefox" --> |
65 | | - <env name="MINK_DRIVER_ARGS_WEBDRIVER" value=""/> |
| 63 | + <!-- Driver args for webdriver tests. --> |
| 64 | + <env name="MINK_DRIVER_ARGS_WEBDRIVER" value='["chrome", {"goog:chromeOptions": {"w3c": true, "args": ["--disable-extensions", "--disable-gpu", "--disable-infobars", "--disable-popup-blocking", "--disable-translate", "--force-prefers-reduced-motion", "--no-first-run", "--test-type"]}}, "http://chrome:4444/wd/hub"]'/> |
66 | 65 | </php> |
67 | 66 | <testsuites> |
68 | 67 | <testsuite name="unit"> |
|
79 | 78 | <directory>web/themes/custom/**/tests/src/Functional</directory> |
80 | 79 | </testsuite> |
81 | 80 |
|
82 | | - <!-- Not implemented. --> |
83 | | - <!-- See https://github.com/drevops/vortex/issues/820 --> |
84 | | - <!-- |
85 | 81 | <testsuite name="functional-javascript"> |
86 | | - <file>./tests/TestSuites/FunctionalJavascriptTestSuite.php</file> |
| 82 | + <directory>web/modules/custom/**/tests/src/FunctionalJavascript</directory> |
| 83 | + <directory>web/themes/custom/**/tests/src/FunctionalJavascript</directory> |
87 | 84 | </testsuite> |
88 | | - --> |
89 | 85 | </testsuites> |
90 | 86 |
|
91 | 87 | <logging> |
|
124 | 120 | <group>skipped</group> |
125 | 121 | </exclude> |
126 | 122 | </groups> |
| 123 | + <extensions> |
| 124 | + <!-- Functional tests HTML output logging. |
| 125 | + Output directory is hardcoded in Drupal core's BrowserHtmlDebugTrait |
| 126 | + to DRUPAL_ROOT/sites/simpletest/browser_output. |
| 127 | + @see https://www.drupal.org/project/drupal/issues/2992069 --> |
| 128 | + <bootstrap class="Drupal\TestTools\Extension\HtmlLogging\HtmlOutputLogger"> |
| 129 | + <parameter name="outputDirectory" value="web/sites/simpletest/browser_output"/> |
| 130 | + <parameter name="verbose" value="true"/> |
| 131 | + </bootstrap> |
| 132 | + </extensions> |
127 | 133 | </phpunit> |
0 commit comments