archived-codacy / php-codacy-coverage

Phar for uploading PHP code coverage to Codacy

Home Page:https://www.codacy.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Specify path to result file

kirillkomlev opened this issue · comments

Hello, everybody.

In my project I have a CI that use coverage files located in another place that codacycoverage (build/logs/clover.xml). I want to specify to codacycoverage a path to a file, that it should be use.

Could you add option, that have a specific path to result file (in clover mode) or a dir (in phpunit mode)?

For example:

php vendor/bin/codacycoverage clover /logs/cover/clover.xml
php vendor/bin/codcycoverage phpunit /log/cover/xml

If option not specified use a default path.