diff options
author | beardyman <nornholdj@gmail.com> | 2015-10-02 15:59:48 -0400 |
---|---|---|
committer | beardyman <nornholdj@gmail.com> | 2015-10-02 16:00:29 -0400 |
commit | f01b1b479d548e838aa56127f14e42476f88ee74 (patch) | |
tree | 36d5ff6a97e40daf9188460a0dcca0431c512c01 | |
parent | 0529d3c100d42403935d2494f7032291dbf86f00 (diff) | |
download | php-sparkpost-f01b1b479d548e838aa56127f14e42476f88ee74.zip php-sparkpost-f01b1b479d548e838aa56127f14e42476f88ee74.tar.gz php-sparkpost-f01b1b479d548e838aa56127f14e42476f88ee74.tar.bz2 |
added phpunit.xml to be able to blacklist the vendor folder for code coverage; added coveralls.yml to override default file paths for coveralls
-rw-r--r-- | .coveralls.yml | 9 | ||||
-rw-r--r-- | composer.json | 2 | ||||
-rw-r--r-- | phpunit.xml | 37 |
3 files changed, 47 insertions, 1 deletions
diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..12aed78 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,9 @@ +#.coveralls.yml + +src_dir: lib/ + +# single file +coverage_clover: test/output/clover.xml + + +json_path: test/output/coveralls-upload.json diff --git a/composer.json b/composer.json index e1fd6a6..d3ea663 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "scripts": { "post-install-cmd": "if [ ! -f 'examples/example-config.json' ]; then echo '{\n\t\"api-key\":\"Your API Key\"\n}' >> examples/example-config.json; fi", "post-update-cmd": "if [ ! -f 'examples/example-config.json' ]; then echo '{\n\t\"api-key\":\"Your API Key\"\n}' >> examples/example-config.json; fi", - "test": "phpunit --coverage-html test/output/report --coverage-clover test/output/clover.xml --bootstrap test/unit/bootstrap.php ./test/unit/" + "test": "phpunit ./test/unit/" }, "require": { "php": ">=5.3.0", diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..3ca0cc3 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,37 @@ +<phpunit + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd" + backupGlobals="true" + backupStaticAttributes="false" + bootstrap="test/unit/bootstrap.php" + cacheTokens="false" + colors="always" + convertErrorsToExceptions="true" + convertNoticesToExceptions="true" + convertWarningsToExceptions="true" + forceCoversAnnotation="false" + mapTestClassNameToCoveredClassName="false" + printerClass="PHPUnit_TextUI_ResultPrinter" + processIsolation="false" + stopOnError="false" + stopOnFailure="false" + stopOnIncomplete="false" + stopOnSkipped="false" + stopOnRisky="false" + testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader" + timeoutForSmallTests="1" + timeoutForMediumTests="10" + timeoutForLargeTests="60" + verbose="false"> + + + <logging> + <log type="coverage-html" target="test/output/report"/> + <log type="coverage-clover" target="test/output/clover.xml"/> + </logging> + <filter> + <blacklist> + <directory>./vendor</directory> + </blacklist> + </filter> +</phpunit> |