This commit is contained in:
Bozhidar 2024-04-28 22:25:00 +03:00
parent 9df1486d6d
commit 8ad6de94ef
2 changed files with 49 additions and 0 deletions

View file

@ -70,6 +70,10 @@
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
],
"test:coverage": [
"Composer\\Config::disableProcessTimeout",
"php -d xdebug.mode=coverage artisan test --coverage -c \"phpunit-coverage.xml\""
]
},
"extra": {

45
web/phpunit-coverage.xml Normal file
View file

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<logging>
<testdoxText outputFile="php://stdout"/>
<junit outputFile="coverage.xml"/>
</logging>
<coverage includeUncoveredFiles="true"
pathCoverage="false"
ignoreDeprecatedCodeUnits="true"
disableCodeCoverageIgnore="true">
<report>
<clover outputFile="clover.xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="Unit">
<directory>tests/Unit</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>app</directory>
<directory>Modules</directory>
</include>
</source>
<php>
<env name="APP_ENV" value="testing"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="SESSION_DRIVER" value="array"/>
<ini name="memory_limit" value="-1"/>
<env name="MAIL_DRIVER" value="array"/>
<env name="MAIL_MAILER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="TELESCOPE_ENABLED" value="false"/>
</php>
</phpunit>