|
|
|
@ -68,6 +68,15 @@
|
|
|
|
|
"test-server": "echo \"Running Test Server\" && php -S localhost:8000 -t tests/server/",
|
|
|
|
|
"test-server-v2": "echo \"Running Test Server\" && 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": [
|
|
|
|
|
"echo \"Running Performance Tests...\"",
|
|
|
|
|
"php -S localhost:8077 -t tests/performance/ > /dev/null 2>&1 & echo $! > server.pid",
|
|
|
|
|
"sleep 2",
|
|
|
|
|
"bash tests/performance/performance_tests.sh",
|
|
|
|
|
"kill `cat server.pid`",
|
|
|
|
|
"rm server.pid",
|
|
|
|
|
"echo \"Performance Tests Completed.\""
|
|
|
|
|
],
|
|
|
|
|
"lint": "phpstan --no-progress --memory-limit=256M -cphpstan.neon",
|
|
|
|
|
"beautify": "phpcbf --standard=phpcs.xml",
|
|
|
|
|
"phpcs": "phpcs --standard=phpcs.xml -n",
|
|
|
|
|