mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
feat(tests): Fail on PHPUnit warnings and risky tests, show deprecations
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
9fc64423a5
commit
1bbf12c465
2 changed files with 4 additions and 4 deletions
|
|
@ -396,8 +396,8 @@ function execute_tests {
|
|||
echo "No coverage"
|
||||
fi
|
||||
|
||||
echo "$PHPUNIT" --colors=always --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3"
|
||||
"$PHPUNIT" --colors=always --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3"
|
||||
echo "$PHPUNIT" --fail-on-warning --fail-on-risky --display-deprecations --display-phpunit-deprecations --colors=always --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3"
|
||||
"$PHPUNIT" --fail-on-warning --fail-on-risky --display-deprecations --display-phpunit-deprecations --colors=always --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3"
|
||||
RESULT=$?
|
||||
|
||||
if [ "$PRIMARY_STORAGE_CONFIG" == "swift" ] ; then
|
||||
|
|
|
|||
|
|
@ -68,9 +68,9 @@
|
|||
"Composer\\Config::disableProcessTimeout",
|
||||
"PHP_CLI_SERVER_WORKERS=${NEXTCLOUD_WORKERS:=4} php -S ${NEXTCLOUD_HOST:=localhost}:${NEXTCLOUD_PORT:=8080} -t ./"
|
||||
],
|
||||
"test": "phpunit --colors=always --configuration tests/phpunit-autotest.xml",
|
||||
"test": "phpunit --fail-on-warning --fail-on-risky --display-warnings --display-deprecations --display-phpunit-deprecations --colors=always --configuration tests/phpunit-autotest.xml",
|
||||
"test:db": "@composer run test -- --group DB,SLOWDB",
|
||||
"test:files_external": "phpunit --colors=always --configuration tests/phpunit-autotest-external.xml",
|
||||
"test:files_external": "phpunit --fail-on-warning --fail-on-risky --display-warnings --display-deprecations --display-phpunit-deprecations --colors=always --configuration tests/phpunit-autotest-external.xml",
|
||||
"rector": "rector --config=build/rector.php && composer cs:fix",
|
||||
"openapi": "./build/openapi-checker.sh"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue