File tree Expand file tree Collapse file tree 7 files changed +30
-9
lines changed Expand file tree Collapse file tree 7 files changed +30
-9
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,5 @@ cghooks.lock
88src /Magento /FunctionalTestingFramework /Group /* .php
99.DS_Store
1010build /*
11+ clover.xml
12+ coverage /
Original file line number Diff line number Diff line change 55install : composer install --no-interaction --prefer-source
66env :
77 matrix :
8- - VERIFICATION_TOOL=copyright-check
98 - VERIFICATION_TOOL=phpunit-checks
109 - VERIFICATION_TOOL=static-checks
1110script :
1211 - bin/$VERIFICATION_TOOL
13- after_script :
14- - if [ $VERIFICATION_TOOL == "phpunit-checks" ]; then php vendor/bin/codacycoverage phpunit; fi
Original file line number Diff line number Diff line change 11# Copyright © Magento, Inc. All rights reserved.
22# See COPYING.txt for license details.
33
4+ # REMEMBER TO UPDATE THE .BAT FILE
5+
6+ UNIT_COVERAGE_THRESHOLD=20
7+
48set -e
59
610echo "==============================="
711echo " UNIT TESTS"
812echo "==============================="
9- vendor/bin/phpunit --configuration dev/tests/phpunit.xml --testsuite unit
13+ vendor/bin/phpunit --configuration dev/tests/phpunit.xml --testsuite unit --coverage-clover clover.xml
14+
15+ echo "==============================="
16+ echo " UNIT TEST COVERAGE"
17+ echo "==============================="
18+ vendor/bin/coverage-check clover.xml $UNIT_COVERAGE_THRESHOLD
1019
1120echo "==============================="
1221echo " VERIFICATION TESTS"
Original file line number Diff line number Diff line change 11:: Copyright © Magento, Inc. All rights reserved.
22:: See COPYING.txt for license details.
33
4+ :: REMEMBER TO UPDATE THE BASH FILE
5+
6+ SET UNIT_COVERAGE_THRESHOLD = 20
7+
48@ echo ===============================UNIT TESTS===============================
59@ echo off
6- call vendor\bin\phpunit --configuration dev\tests\phpunit.xml --testsuite unit --coverage-xml build\coverage-xml
10+ call vendor\bin\phpunit --configuration dev\tests\phpunit.xml --testsuite unit --coverage-clover clover.xml
11+
12+ @ echo ===========================UNIT TEST COVERAGE===========================
13+ @ echo off
14+ call vendor\bin\coverage-check clover.xml %UNIT_COVERAGE_THRESHOLD%
715
16+ @ echo ===========================VERIFICATION TESTS===========================
817@ echo off
9- @ echo ===============================VERIFICATION TESTS===============================
10- call vendor\bin\phpunit --configuration dev\tests\phpunit.xml --testsuite verification --coverage-xml build\coverage-xml
18+ call vendor\bin\phpunit --configuration dev\tests\phpunit.xml --testsuite verification
Original file line number Diff line number Diff line change 11# Copyright © Magento, Inc. All rights reserved.
22# See COPYING.txt for license details.
33
4+ ## REMEMBER TO UPDATE THE .BAT FILE
5+
46set -e
57
68echo "==============================="
Original file line number Diff line number Diff line change 11:: Copyright © Magento, Inc. All rights reserved.
22:: See COPYING.txt for license details.
33
4+ :: REMEMBER TO UPDATE THE BASH FILE
5+
46@ echo off
57@ echo ===============================PHP CODE SNIFFER REPORT===============================
68call vendor\bin\phpcs .\src --standard=.\dev\tests\static\Magento
@@ -16,4 +18,4 @@ vendor\bin\phpmd .\src text \dev\tests\static\Magento\CodeMessDetector\ruleset.x
1618@ echo ===============================MAGENTO COPYRIGHT REPORT===============================
1719echo msgbox " INFO:Copyright check currently not run as part of .bat implementation" > " %temp% \popup.vbs"
1820wscript.exe " %temp% \popup.vbs"
19- :: bin\copyright-check
21+ :: bin\copyright-check
Original file line number Diff line number Diff line change 2222 "brainmaestro/composer-git-hooks" : " ^2.3" ,
2323 "codeception/aspect-mock" : " ^2.0" ,
2424 "codacy/coverage" : " ^1.4" ,
25- "phpmd/phpmd" : " ^2.6.0"
25+ "phpmd/phpmd" : " ^2.6.0" ,
26+ "rregeer/phpunit-coverage-check" : " ^0.1.4"
2627 },
2728 "autoload" : {
2829 "psr-4" : {
You can’t perform that action at this time.
0 commit comments