From d86c73ebff40de13ac213772dfbd499b387bc74f Mon Sep 17 00:00:00 2001 From: William Hall Date: Wed, 3 Feb 2021 09:31:16 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20run=20tests=20easier=20and=20new?= =?UTF-8?q?er?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +++- composer.json | 5 +++++ phpunit.xml | 18 ++++++++++++------ 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index f002e5c..5c1c961 100644 --- a/.gitignore +++ b/.gitignore @@ -187,4 +187,6 @@ FakesAssemblies/ composer.lock # .vs -.vs/ \ No newline at end of file +.vs/ + +.phpunit.result.cache diff --git a/composer.json b/composer.json index 20bcd21..e4bde51 100644 --- a/composer.json +++ b/composer.json @@ -36,5 +36,10 @@ "psr-4": { "Tests\\": "tests/" } + }, + "scripts": { + "test": [ + "XDEBUG_MODE=coverage phpunit" + ] } } diff --git a/phpunit.xml b/phpunit.xml index 92c3a27..b2ff004 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,4 +1,4 @@ - + ./tests - - + + ./lib - - - \ No newline at end of file + + + + + + +