From fd0ebf5f33131523affc1f06b0919293f1e3adda Mon Sep 17 00:00:00 2001 From: Matias Navarro Carter Date: Fri, 12 Oct 2018 15:42:02 -0300 Subject: [PATCH] Code Coverage --- .gitignore | 3 ++- .travis.yml | 3 +++ composer.json | 2 +- phpunit.xml.dist | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0bf5d75..5dd6157 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ vendor composer.lock .idea -.php_cs.cache \ No newline at end of file +.php_cs.cache +build \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 3a4dda6..52d38e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,7 @@ language: php +env: + global: + - CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID dist: precise php: - '7.1' diff --git a/composer.json b/composer.json index f255878..95df055 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ } }, "scripts": { - "test": "@php vendor/bin/phpunit --verbose", + "test": "@php vendor/bin/phpunit --verbose --coverage-text --coverage-clover build/logs/clover.xml", "style": "@php vendor/bin/php-cs-fixer fix" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index b49369f..d723ff0 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -15,6 +15,7 @@ ./tests + ./src