Skip to content

Commit 7bf2b77

Browse files
committed
Merge branch 'MQE-601' into sprint-develop
2 parents e202bfa + 191ac9e commit 7bf2b77

File tree

7 files changed

+30
-9
lines changed

7 files changed

+30
-9
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ cghooks.lock
88
src/Magento/FunctionalTestingFramework/Group/*.php
99
.DS_Store
1010
build/*
11+
clover.xml
12+
coverage/

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ php:
55
install: composer install --no-interaction --prefer-source
66
env:
77
matrix:
8-
- VERIFICATION_TOOL=copyright-check
98
- VERIFICATION_TOOL=phpunit-checks
109
- VERIFICATION_TOOL=static-checks
1110
script:
1211
- bin/$VERIFICATION_TOOL
13-
after_script:
14-
- if [ $VERIFICATION_TOOL == "phpunit-checks" ]; then php vendor/bin/codacycoverage phpunit; fi

bin/phpunit-checks

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
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+
48
set -e
59

610
echo "==============================="
711
echo " UNIT TESTS"
812
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
1019

1120
echo "==============================="
1221
echo " VERIFICATION TESTS"

bin/phpunit-checks.bat

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
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

bin/static-checks

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Copyright © Magento, Inc. All rights reserved.
22
# See COPYING.txt for license details.
33

4+
## REMEMBER TO UPDATE THE .BAT FILE
5+
46
set -e
57

68
echo "==============================="

bin/static-checks.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
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===============================
68
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
1618
@echo ===============================MAGENTO COPYRIGHT REPORT===============================
1719
echo msgbox "INFO:Copyright check currently not run as part of .bat implementation" > "%temp%\popup.vbs"
1820
wscript.exe "%temp%\popup.vbs"
19-
::bin\copyright-check
21+
::bin\copyright-check

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
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": {

0 commit comments

Comments
 (0)