From 4eaeaf92c8785f34f8ac35715fb386e09b85c37e Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 14 Oct 2016 11:46:38 +0200 Subject: tests: Add env variable to disable code coverage collection Signed-off-by: Florian Pritz --- run-tests.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'run-tests.sh') diff --git a/run-tests.sh b/run-tests.sh index a83e8ea25..a65800fb0 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -4,6 +4,7 @@ # export ENVIRONMENT="testsuite" +export COLLECT_COVERAGE=1 startdir="$(dirname "$0")" @@ -37,6 +38,8 @@ phpdbg -qrr index.php tools update_database || exit 1 prove --ext .php --state=failed,save --timer --comments --exec 'phpdbg -qrr index.php tools test' --recurse "${@:-application/test/tests/}" || exit 1 -php index.php tools generate_coverage_report -rm -rf test-coverage-data +if (($COLLECT_COVERAGE)); then + php index.php tools generate_coverage_report + rm -rf test-coverage-data +fi -- cgit v1.2.3-24-g4f1b