[TOOLS] Fix running tests without filters

This commit is contained in:
Hugo Sales 2021-11-08 21:49:12 +00:00
parent f0c532340e
commit 98b1b7072c
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 2 additions and 4 deletions

View File

@ -38,7 +38,7 @@ tooling-docker: .PHONY
@cd docker/tooling && docker-compose up -d > /dev/null 2>&1
test: tooling-docker
docker exec $(call translate-container-name,tooling_php_1) /var/tooling/coverage.sh $(call args,'.*')
docker exec $(call translate-container-name,tooling_php_1) /var/tooling/coverage.sh $(call args,'')
doc-check:
bin/php-doc-check src components plugins

View File

@ -5,9 +5,7 @@ cd /var/www/social || exit 1
printf "Cleaning Redis cache: " && echo "FLUSHALL" | nc redis 6379
yes yes | php bin/console doctrine:fixtures:load || exit 1
echo yooo
if [ "$#" -eq 0 ]; then
if [ "$#" -eq 0 ] || [ -z "$*" ]; then
runuser -u www-data -- vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report
else
echo "Running with filter"