From 4d25f35c6656fb99dbe484eaffddd9e3b465821a Mon Sep 17 00:00:00 2001 From: Peter Lieverdink Date: Wed, 21 Sep 2022 14:23:34 +1000 Subject: [PATCH] fix: Run as unto we do in off of response-site with the same phpunit.xml file. --- .travis.yml | 4 +- phpunit.xml | 105 +++++++++++++++++++++++++++++++++++++--------------- 2 files changed, 78 insertions(+), 31 deletions(-) diff --git a/.travis.yml b/.travis.yml index c0ae2a86..e6a40a1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -72,7 +72,7 @@ script: # Run unit tests. - docker exec -it -u root -w /srv/www $SITEID-site mkdir -p /srv/www/html/sites/default/files/browser_output - - docker exec -it -u root -w /srv/www -e BROWSERTEST_OUTPUT_DIRECTORY=/srv/www/html/sites/default/files/browser_output $SITEID-site ./vendor/bin/phpunit --debug . + - docker exec -it -u root -w /srv/www -e BROWSERTEST_OUTPUT_DIRECTORY=/srv/www/html/sites/default/files/browser_output $SITEID-site ./vendor/bin/phpunit --debug # Install the site with existing config. - docker exec -it $SITEID-site drush -y si --existing-config minimal install_configure_form.enable_update_status_emails=NULL @@ -92,7 +92,7 @@ script: - docker exec -it -u root $SITEID-site chmod -R 777 /srv/www/html/build/logs # Run all tests. - - docker exec -it -u root -w /srv/www -e XDEBUG_MODE=coverage -e BROWSERTEST_OUTPUT_DIRECTORY=/srv/www/html/sites/default/files/browser_output -e DTT_BASE_URL=http://127.0.0.1 $SITEID-site ./vendor/bin/phpunit --debug . + - docker exec -it -u root -w /srv/www -e XDEBUG_MODE=coverage -e BROWSERTEST_OUTPUT_DIRECTORY=/srv/www/html/sites/default/files/browser_output -e DTT_BASE_URL=http://127.0.0.1 $SITEID-site ./vendor/bin/phpunit --debug # Trying without chrome and the specialized ports. # # Chrome headless diff --git a/phpunit.xml b/phpunit.xml index 92e4d36d..5e76badc 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,32 +1,79 @@ - - - - - - - - - - - - - - - - ./html/modules/custom/*/tests/src/Unit - - - ./html/modules/custom/*/tests/src/Kernel - - - ./html/modules/custom/*/tests/src/ExistingSite - - - ./html/modules/custom/*/tests/src/ExistingSiteJavascript - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ./html/modules/custom/*/tests/src/Unit + + + ./html/modules/custom/*/tests/src/ExistingSite + + + + + ./html/modules/custom + ./html/modules/custom + + + ./html/modules/custom + ./html/modules/custom + ./html/modules/custom/*/src/Tests + ./html/modules/custom/*/tests + ./html/modules/custom/*/*/src/Tests + ./html/modules/custom/*/*/tests + ./html/modules/custom/*/src/Exception + + + + + + + + + + +