File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed
Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -142,11 +142,15 @@ phpunit-run:
142142 cp vendor/adyen/module-payment/Test/phpunit.xml.dist dev/tests/unit/phpunit.xml
143143 cd dev/tests/unit; \
144144 ../../../vendor/bin/phpunit \
145- --coverage-clover=../../../build/clover.xml \
146- --log-junit=../../../build/tests-log.xml \
145+ --coverage-clover=../../../build/clover.xml.dist \
146+ --log-junit=../../../build/tests-log.xml.dist \
147147 -c phpunit.xml \
148148 ../../../vendor/adyen/module-payment/Test/Unit
149149
150+ phpunit-fix-report :
151+ sed ' /file/s/\/var\/www\/html\/vendor\/adyen\/module-payment\///g' ${MAGENTO_ROOT} /build/tests-log.xml.dist >> ${MAGENTO_ROOT} /build/tests-log.xml
152+ sed ' /file/s/\/var\/www\/html\/vendor\/adyen\/module-payment\///g' ${MAGENTO_ROOT} /build/clover.xml.dist >> ${MAGENTO_ROOT} /build/clover.xml
153+
150154codesniffer-run :
151155 vendor/bin/phpcs --standard=Magento2 \
152156 --extensions=php,phtml \
Original file line number Diff line number Diff line change 6262 - name : Run PHPUnit
6363 run : docker exec magento2-container make phpunit-run
6464
65+ - name : Format PHPUnit coverage reports
66+ run : docker exec magento2-container make phpunit-fix-report
67+
6568 - name : SonarCloud Scan
6669 if : ${{ env.SONAR_TOKEN }}
6770 uses : SonarSource/sonarqube-scan-action@master
Original file line number Diff line number Diff line change 1313 bootstrap =" ./framework/bootstrap.php" >
1414 <source >
1515 <include >
16- <directory suffix =" .php" >../../../app/code/*</directory >
17- <directory suffix =" .php" >../../../lib/internal/Magento</directory >
18- <directory suffix =" .php" >../../../setup/src/*</directory >
16+ <directory suffix =" .php" >../../../vendor/adyen/module-payment/*</directory >
1917 </include >
2018 <exclude >
21- <directory >../../../app/code/*/*/Test</directory >
22- <directory >../../../lib/internal/*/*/Test</directory >
23- <directory >../../../lib/internal/*/*/*/Test</directory >
24- <directory >../../../setup/src/*/*/Test</directory >
19+ <directory >../../../vendor/adyen/module-payment/*/*/Test</directory >
2520 </exclude >
2621 </source >
2722 <testsuites >
3227 <php >
3328 <includePath >.</includePath >
3429 <ini name =" memory_limit" value =" -1" />
35- <ini name =" date.timezone" value =" America/Los_Angeles " />
30+ <ini name =" date.timezone" value =" Europe/Amsterdam " />
3631 <ini name =" xdebug.max_nesting_level" value =" 200" />
3732 </php >
3833 <extensions >
You can’t perform that action at this time.
0 commit comments