Skip to content

Commit 191ac9e

Browse files
committed
MQE-601: PHPUnit Integration for MFTF
1 parent ad019f6 commit 191ac9e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

bin/phpunit-checks

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
# REMEMBER TO UPDATE THE .BAT FILE
55

6+
UNIT_COVERAGE_THRESHOLD=20
7+
68
set -e
79

810
echo "==============================="
@@ -13,7 +15,7 @@ vendor/bin/phpunit --configuration dev/tests/phpunit.xml --testsuite unit --cove
1315
echo "==============================="
1416
echo " UNIT TEST COVERAGE"
1517
echo "==============================="
16-
vendor/bin/coverage-check clover.xml 20
18+
vendor/bin/coverage-check clover.xml $UNIT_COVERAGE_THRESHOLD
1719

1820
echo "==============================="
1921
echo " VERIFICATION TESTS"

bin/phpunit-checks.bat

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33

44
:: REMEMBER TO UPDATE THE BASH FILE
55

6+
SET UNIT_COVERAGE_THRESHOLD=20
7+
68
@echo ===============================UNIT TESTS===============================
79
@echo off
810
call vendor\bin\phpunit --configuration dev\tests\phpunit.xml --testsuite unit --coverage-clover clover.xml
911

1012
@echo ===========================UNIT TEST COVERAGE===========================
1113
@echo off
12-
call vendor\bin\coverage-check clover.xml 20
14+
call vendor\bin\coverage-check clover.xml %UNIT_COVERAGE_THRESHOLD%
1315

1416
@echo ===========================VERIFICATION TESTS===========================
1517
@echo off

0 commit comments

Comments
 (0)