diff --git a/Makefile b/Makefile index bf6fb9562a..ab80638436 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/docker/tooling/coverage.sh b/docker/tooling/coverage.sh index aa76c02737..94ec3c579e 100755 --- a/docker/tooling/coverage.sh +++ b/docker/tooling/coverage.sh @@ -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"