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
8
8
src /Magento /FunctionalTestingFramework /Group /* .php
9
9
.DS_Store
10
10
build /*
11
+ clover.xml
12
+ coverage /
Original file line number Diff line number Diff line change 5
5
install : composer install --no-interaction --prefer-source
6
6
env :
7
7
matrix :
8
- - VERIFICATION_TOOL=copyright-check
9
8
- VERIFICATION_TOOL=phpunit-checks
10
9
- VERIFICATION_TOOL=static-checks
11
10
script :
12
11
- 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 1
1
# Copyright © Magento, Inc. All rights reserved.
2
2
# See COPYING.txt for license details.
3
3
4
+ # REMEMBER TO UPDATE THE .BAT FILE
5
+
6
+ UNIT_COVERAGE_THRESHOLD=20
7
+
4
8
set -e
5
9
6
10
echo "==============================="
7
11
echo " UNIT TESTS"
8
12
echo "==============================="
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
10
19
11
20
echo "==============================="
12
21
echo " VERIFICATION TESTS"
Original file line number Diff line number Diff line change 1
1
:: Copyright © Magento, Inc. All rights reserved.
2
2
:: See COPYING.txt for license details.
3
3
4
+ :: REMEMBER TO UPDATE THE BASH FILE
5
+
6
+ SET UNIT_COVERAGE_THRESHOLD = 20
7
+
4
8
@ echo ===============================UNIT TESTS===============================
5
9
@ 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%
7
15
16
+ @ echo ===========================VERIFICATION TESTS===========================
8
17
@ 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 1
1
# Copyright © Magento, Inc. All rights reserved.
2
2
# See COPYING.txt for license details.
3
3
4
+ ## REMEMBER TO UPDATE THE .BAT FILE
5
+
4
6
set -e
5
7
6
8
echo "==============================="
Original file line number Diff line number Diff line change 1
1
:: Copyright © Magento, Inc. All rights reserved.
2
2
:: See COPYING.txt for license details.
3
3
4
+ :: REMEMBER TO UPDATE THE BASH FILE
5
+
4
6
@ echo off
5
7
@ echo ===============================PHP CODE SNIFFER REPORT===============================
6
8
call 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
16
18
@ echo ===============================MAGENTO COPYRIGHT REPORT===============================
17
19
echo msgbox " INFO:Copyright check currently not run as part of .bat implementation" > " %temp% \popup.vbs"
18
20
wscript.exe " %temp% \popup.vbs"
19
- :: bin\copyright-check
21
+ :: bin\copyright-check
Original file line number Diff line number Diff line change 22
22
"brainmaestro/composer-git-hooks" : " ^2.3" ,
23
23
"codeception/aspect-mock" : " ^2.0" ,
24
24
"codacy/coverage" : " ^1.4" ,
25
- "phpmd/phpmd" : " ^2.6.0"
25
+ "phpmd/phpmd" : " ^2.6.0" ,
26
+ "rregeer/phpunit-coverage-check" : " ^0.1.4"
26
27
},
27
28
"autoload" : {
28
29
"psr-4" : {
You can’t perform that action at this time.
0 commit comments