can generate PHPUnit code coverage
This commit is contained in:
parent
a0090ab3bb
commit
fedd03a66e
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1,3 @@
|
|||||||
src/tests/.phpunit.result.cache
|
Tests/.phpunit.result.cache
|
||||||
src/tests/reports/
|
Tests/reports/
|
||||||
.php_cs.cache
|
.php_cs.cache
|
||||||
|
@ -23,7 +23,17 @@
|
|||||||
<!-- <directory>integration/</directory>-->
|
<!-- <directory>integration/</directory>-->
|
||||||
<!-- </testsuite>-->
|
<!-- </testsuite>-->
|
||||||
</testsuites>
|
</testsuites>
|
||||||
<coverage includeUncoveredFiles="true" />
|
<coverage includeUncoveredFiles="true" processUncoveredFiles="true">
|
||||||
|
<include>
|
||||||
|
<directory suffix=".php">../</directory>
|
||||||
|
</include>
|
||||||
|
<exclude>
|
||||||
|
<file>../.php-cs-fixer.php</file>
|
||||||
|
<file>../IntelliSenseHelper.php</file>
|
||||||
|
<file>../rector.php</file>
|
||||||
|
<directory>../Tests/</directory>
|
||||||
|
</exclude>
|
||||||
|
</coverage>
|
||||||
<php>
|
<php>
|
||||||
<const name="OXID_PHP_UNIT" value="true"/>
|
<const name="OXID_PHP_UNIT" value="true"/>
|
||||||
</php>
|
</php>
|
||||||
|
@ -66,8 +66,13 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"php-cs-fixer": "./vendor/bin/php-cs-fixer fix --config=vendor/d3/oxid-twofactor-onetimepassword/.php-cs-fixer.php",
|
"php-cs-fixer": "./vendor/bin/php-cs-fixer fix --config=vendor/d3/oxid-twofactor-onetimepassword/.php-cs-fixer.php",
|
||||||
|
|
||||||
"phpstan": "./vendor/bin/phpstan --configuration=./vendor/d3/oxid-twofactor-onetimepassword/phpstan.neon",
|
"phpstan": "./vendor/bin/phpstan --configuration=./vendor/d3/oxid-twofactor-onetimepassword/phpstan.neon",
|
||||||
|
|
||||||
"phpunit": "XDEBUG_MODE=off vendor/bin/phpunit --config=vendor/d3/oxid-twofactor-onetimepassword/Tests/",
|
"phpunit": "XDEBUG_MODE=off vendor/bin/phpunit --config=vendor/d3/oxid-twofactor-onetimepassword/Tests/",
|
||||||
|
"phpunit-line-coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --config=vendor/d3/oxid-twofactor-onetimepassword/Tests/ --coverage-html=vendor/d3/oxid-twofactor-onetimepassword/Tests/reports/coverage",
|
||||||
|
"phpunit-path-coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --config=vendor/d3/oxid-twofactor-onetimepassword/Tests/ --coverage-html=vendor/d3/oxid-twofactor-onetimepassword/Tests/reports/coverage --path-coverage",
|
||||||
|
|
||||||
"phpunuhi": "./vendor/bin/phpunuhi --configuration=vendor/d3/oxid-twofactor-onetimepassword/phpunuhi.xml validate"
|
"phpunuhi": "./vendor/bin/phpunuhi --configuration=vendor/d3/oxid-twofactor-onetimepassword/phpunuhi.xml validate"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user