Add config cache clearing before tests

This commit is contained in:
Bubka 2024-10-29 21:11:12 +01:00
parent 59db486c3c
commit 172e945f3f
2 changed files with 13 additions and 3 deletions

View File

@ -4,6 +4,8 @@ APP_KEY=base64:pdjaSqs7dDu8SdYCQzsayBAqeMC+85fmo3bpeBCCT94=
APP_DEBUG=true APP_DEBUG=true
APP_URL=http://localhost APP_URL=http://localhost
CACHE_STORE=array
WEBAUTHN_NAME=TestApp WEBAUTHN_NAME=TestApp
WEBAUTHN_ID=null WEBAUTHN_ID=null
WEBAUTHN_USER_VERIFICATION=discouraged WEBAUTHN_USER_VERIFICATION=discouraged

View File

@ -98,16 +98,24 @@
], ],
"test": [ "test": [
"php artisan config:clear", "php artisan config:clear",
"php artisan test --parallel" "vendor/bin/phpunit",
"php artisan config:clear"
],
"test-para": [
"php artisan config:clear",
"php artisan test --parallel",
"php artisan config:clear"
], ],
"test-mysql": [ "test-mysql": [
"php artisan config:clear", "php artisan config:clear",
"vendor/bin/phpunit -c phpunit-mysql.xml" "vendor/bin/phpunit -c phpunit-mysql.xml",
"php artisan config:clear"
], ],
"test-coverage-html": [ "test-coverage-html": [
"@putenv XDEBUG_MODE=coverage", "@putenv XDEBUG_MODE=coverage",
"php artisan config:clear", "php artisan config:clear",
"vendor/bin/phpunit --coverage-html tests/Coverage/" "vendor/bin/phpunit --coverage-html tests/Coverage/",
"php artisan config:clear"
], ],
"ide-helper": [ "ide-helper": [
"php artisan config:clear", "php artisan config:clear",