Simplify code coverage generation

pull/704/head
fadrian06 2 days ago
parent 6b47c10192
commit a148d8750f

@ -72,7 +72,6 @@
"phpunit-watcher watch" "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"
@ -85,11 +84,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