mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-17 20:54:52 +08:00
add test coverage config
This commit is contained in:
parent
c6bbba6051
commit
2e127771ed
@ -55,7 +55,8 @@
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Module\\": "src/Module",
|
||||
"Custom\\": "src/Custom"
|
||||
"Custom\\": "src/Custom",
|
||||
"ZM\\Tests\\": "tests"
|
||||
}
|
||||
},
|
||||
"bin": [
|
||||
@ -91,6 +92,6 @@
|
||||
],
|
||||
"analyse": "phpstan analyse --memory-limit 300M -l 0 ./src",
|
||||
"cs-fix": "php-cs-fixer fix $1",
|
||||
"test": "bin/phpunit-swoole"
|
||||
"test": "bin/phpunit-swoole --no-coverage"
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,12 +18,16 @@
|
||||
<directory suffix="Test.php">./tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<coverage processUncoveredFiles="true">
|
||||
<coverage>
|
||||
<include>
|
||||
<directory suffix=".php">./src/ZM</directory>
|
||||
</include>
|
||||
<report>
|
||||
<html outputDirectory="./build/html-coverage"/>
|
||||
<clover outputFile="./build/coverage.xml"/>
|
||||
</report>
|
||||
</coverage>
|
||||
<php>
|
||||
<env name="APP_ENV" value="testing"/>
|
||||
</php>
|
||||
</phpunit>
|
||||
</phpunit>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user