parent
3150c948f0
commit
a3e328a8d0
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@
|
||||||
!/bin/*
|
!/bin/*
|
||||||
!/config/**
|
!/config/**
|
||||||
!/phpstan.neon
|
!/phpstan.neon
|
||||||
|
!/phpunit.xml.dist
|
||||||
!/scripts/**
|
!/scripts/**
|
||||||
!/web/modules/custom/**
|
!/web/modules/custom/**
|
||||||
!/web/sites/default/environments/settings.*.php
|
!/web/sites/default/environments/settings.*.php
|
||||||
|
|
|
@ -18,5 +18,4 @@ symfony php vendor/bin/phpcs -n \
|
||||||
vendor/bin/phpstan analyze
|
vendor/bin/phpstan analyze
|
||||||
|
|
||||||
symfony php vendor/bin/phpunit \
|
symfony php vendor/bin/phpunit \
|
||||||
-c web/core \
|
|
||||||
"$@"
|
"$@"
|
||||||
|
|
29
phpunit.xml.dist
Normal file
29
phpunit.xml.dist
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<phpunit bootstrap="web/core/tests/bootstrap.php"
|
||||||
|
colors="true"
|
||||||
|
beStrictAboutTestsThatDoNotTestAnything="true"
|
||||||
|
beStrictAboutOutputDuringTests="true"
|
||||||
|
beStrictAboutChangesToGlobalState="true"
|
||||||
|
printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter">
|
||||||
|
<php>
|
||||||
|
<ini name="error_reporting" value="32767"/>
|
||||||
|
<ini name="memory_limit" value="-1"/>
|
||||||
|
<env name="SIMPLETEST_BASE_URL" value="https://localhost:8000"/>
|
||||||
|
<env name="SIMPLETEST_DB" value="sqlite://localhost//tmp/.oliverdavies-uk.sqlite"/>
|
||||||
|
<env name="BROWSERTEST_OUTPUT_DIRECTORY" value=""/>
|
||||||
|
<env name="BROWSERTEST_OUTPUT_BASE_URL" value=""/>
|
||||||
|
<env name="MINK_DRIVER_CLASS" value=''/>
|
||||||
|
<env name="MINK_DRIVER_ARGS_PHANTOMJS" value=''/>
|
||||||
|
</php>
|
||||||
|
<testsuites>
|
||||||
|
<testsuite name="functional">
|
||||||
|
<directory suffix="Test.php">./web/modules/custom/**/tests/**/Functional</directory>
|
||||||
|
</testsuite>
|
||||||
|
<testsuite name="kernel">
|
||||||
|
<directory suffix="Test.php">./web/modules/custom/**/tests/**/Kernel</directory>
|
||||||
|
</testsuite>
|
||||||
|
<testsuite name="unit">
|
||||||
|
<directory suffix="Test.php">./web/modules/custom/**/tests/**/Unit</directory>
|
||||||
|
</testsuite>
|
||||||
|
</testsuites>
|
||||||
|
</phpunit>
|
Loading…
Reference in a new issue