-
Notifications
You must be signed in to change notification settings - Fork 19
/
phpunit.xml.dist
38 lines (37 loc) · 1.75 KB
/
phpunit.xml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<!--Copy code below into your own phpunit.xml file-->
<!-- Using this project's bootstrap file allows tests in `ExistingSite`, `ExistingSiteSelenium2` and `ExistingSiteWebDriver
to run alongside core's 4 test types. -->
<phpunit
bootstrap="scripts/bootstrap-fast.php"
printerClass="Drupal\Tests\Listeners\HtmlOutputPrinter"
cacheResult="true">
<php>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
<!-- Note you must use double quotes for the interior of this JSON blob. -->
<env name="DTT_MINK_DRIVER_ARGS" value='["chrome", {"chromeOptions": {"args": ["disable-dev-shm-usage"]}}, "http://localhost:4444/wd/hub"]'/>
<!-- Do not limit the amount of memory tests take to run. -->
<ini name="memory_limit" value="-1"/>
</php>
<!-- Automatically run all ExistingSite tests alongside unit, and kernel
tests in custom code. -->
<testsuites>
<testsuite name="unit">
<directory>./docroot/modules/custom/*/tests/src/Unit</directory>
<directory>./docroot/modules/custom/*/*/tests/src/Unit</directory>
</testsuite>
<testsuite name="kernel">
<directory>./docroot/modules/custom/*/tests/src/Kernel</directory>
</testsuite>
<testsuite name="existing-site">
<!-- This assumes tests are namespaced as
`\Drupal\Tests\custom_module_foo\ExistingSite`. -->
<directory>./docroot/modules/custom/*/tests/src/ExistingSite</directory>
</testsuite>
<testsuite name="existing-site-javascript">
<!-- This assumes tests are namespaced as
`\Drupal\Tests\custom_module_foo\ExistingSiteJavascript`. -->
<directory>./docroot/modules/custom/*/tests/src/ExistingSiteJavascript</directory>
</testsuite>
</testsuites>
</phpunit>