From 2e127771ed3b4be95c91a87a42d85f705d615f97 Mon Sep 17 00:00:00 2001 From: sunxyw Date: Mon, 28 Mar 2022 20:09:44 +0800 Subject: [PATCH] add test coverage config --- composer.json | 5 +++-- phpunit.xml.dist | 8 ++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index e13ef98d..5153ee78 100644 --- a/composer.json +++ b/composer.json @@ -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" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 49ebec24..7f81ee24 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -18,12 +18,16 @@ ./tests - + ./src/ZM + + + + - \ No newline at end of file +