Merge pull request #704 from flightphp/simplify-coverage-generation

Simplify code coverage generation
master
n0nag0n 18 hours ago committed by GitHub
commit ad7c613d55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -70,7 +70,6 @@
"test": "phpunit", "test": "phpunit",
"test-watcher": "phpunit-watcher watch", "test-watcher": "phpunit-watcher watch",
"test-coverage": [ "test-coverage": [
"rm -f clover.xml",
"@putenv XDEBUG_MODE=coverage", "@putenv XDEBUG_MODE=coverage",
"phpunit --coverage-html=coverage --coverage-clover=clover.xml", "phpunit --coverage-html=coverage --coverage-clover=clover.xml",
"coverage-check clover.xml 100" "coverage-check clover.xml 100"
@ -83,11 +82,6 @@
"echo \"Running Test Server\"", "echo \"Running Test Server\"",
"@php -S localhost:8000 -t tests/server-v2" "@php -S localhost:8000 -t tests/server-v2"
], ],
"test-coverage:win": [
"del clover.xml",
"phpunit --coverage-html=coverage --coverage-clover=clover.xml",
"coverage-check clover.xml 100"
],
"test-performance": [ "test-performance": [
"echo \"Running Performance Tests...\"", "echo \"Running Performance Tests...\"",
"@php -S localhost:8077 -t tests/performance/ > /dev/null 2>&1 & echo $! > server.pid", "@php -S localhost:8077 -t tests/performance/ > /dev/null 2>&1 & echo $! > server.pid",

Loading…
Cancel
Save