From a3e328a8d054321ded66c421ef5ed31078107d17 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 13 May 2020 03:06:29 +0100 Subject: [PATCH] Add phpunit.xml.dist Fixes #32 --- .gitignore | 1 + bin/run-tests.sh | 1 - phpunit.xml.dist | 29 +++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 phpunit.xml.dist diff --git a/.gitignore b/.gitignore index 50b4488..e74fb94 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ !/bin/* !/config/** !/phpstan.neon +!/phpunit.xml.dist !/scripts/** !/web/modules/custom/** !/web/sites/default/environments/settings.*.php diff --git a/bin/run-tests.sh b/bin/run-tests.sh index 358ca47..bf9b8ad 100755 --- a/bin/run-tests.sh +++ b/bin/run-tests.sh @@ -18,5 +18,4 @@ symfony php vendor/bin/phpcs -n \ vendor/bin/phpstan analyze symfony php vendor/bin/phpunit \ - -c web/core \ "$@" diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..1b5c0f4 --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + ./web/modules/custom/**/tests/**/Functional + + + ./web/modules/custom/**/tests/**/Kernel + + + ./web/modules/custom/**/tests/**/Unit + + +