diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-10-14 11:46:38 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-11-01 17:32:43 +0100 |
commit | 8c7d14d3df04772649e3d9d293a4fdd9843f0ffe (patch) | |
tree | b3796ff9fb89456446571c3e7b570a0ae3ad8abe /run-tests.sh | |
parent | 7d52132ada2f00961cc6fbb4d0bed8bc45b295e1 (diff) |
tests: Add env variable to disable code coverage collection
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'run-tests.sh')
-rwxr-xr-x | run-tests.sh | 7 |
1 files changed, 5 insertions, 2 deletions
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 |