Skip to content

Commit 4eff8da

Browse files
committed
coverage requirement variable, reduc3 coverage to 78%
1 parent 43e72d8 commit 4eff8da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/phpunit/run.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ DB="${DB:-sqlite}"
1010

1111
echo "SETTING UP DB $DB"
1212

13+
COVERAGE_REQUIREMENT=78
14+
15+
echo "Coverage requirement is ${COVERAGE_REQUIREMENT}%"
16+
1317
export DB_DRIVER=$DB
1418
export DB_NAME=cypht_test
1519

@@ -43,4 +47,4 @@ else
4347
fi
4448

4549
phpunit --bootstrap vendor/autoload.php --configuration ${SCRIPT_DIR}/phpunit.xml --testdox $@
46-
vendor/bin/coverage-check ${SCRIPT_DIR}/clover.xml 100
50+
vendor/bin/coverage-check ${SCRIPT_DIR}/clover.xml ${COVERAGE_REQUIREMENT}

0 commit comments

Comments
 (0)