Download the PHP package codacy/coverage without Composer
On this page you can find all versions of the php package codacy/coverage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codacy/coverage
More information about codacy/coverage
Files in codacy/coverage
Package coverage
Short Description Sends PHP test coverage information to Codacy.
License MIT
Homepage https://github.com/codacy/php-codacy-coverage
Informations about the package coverage
Deprecated
This repository is no longer maintained. As an alternative, check codacy-coverage-reporter to send your test coverage results to your Codacy dashboard.
Codacy PHP Coverage Reporter
Codacy coverage support for PHP. Get coverage reporting and code analysis for PHP from Codacy.
Prerequisites
- PHP 5.3 or later
- One of the following coverage report formats
- Clover XML (e.g. in PHPUnit)
- [Only for PHPUnit <4] PHPUnit XML (e.g. in PHPUnit)
Installation
Setup codacy-coverage with Composer, just add the following to your composer.json:
Download the dependencies by running Composer in the directory of your composer.json
:
codacy-coverage library is available on Packagist.
Add the autoloader to your php script:
Note: We have php5-curl dependency, if you have issues related to curl_init() please install it with:
Alternative Installation (using phar)
Setup codacy-coverage as phar, you can simply download a pre-compiled and ready-to-use version as a phar to any directory. Simply download the latest codacy-coverage.phar
file from our releases page:
That's it already.
Updating Codacy
To update Codacy, you will need your project API token. You can find the token in Project -> Settings -> Integrations -> Project API.
Then set it in your terminal, replacing %Project_Token% with your own token:
Note: You should keep your API token well protected, as it grants owner permissions to your projects.
To send coverage in the enterprise version you should:
Usage
Run to see a list of commands.
Basic usage for Clover format:
Basic usage for PHPUnit XML format:
By default we assume that
- your Clover coverage report is saved in
- your PHPUnit XML report is saved in the directory
Optional parameters:
You can specify the path to your report with the second parameter:
- Clover XML
- PHPUnit XML
Even more control:
- defaults to http://codacy.com
- defaults to the last commit hash
Circle CI
This project sends its own coverage during the build in circleCI.
Feel free to check our circle.yml
, and send your coverage as a step of your build process.
Travis CI
Add codacycoverage to your .travis.yml
:
Troubleshooting
If you have a fatal error regarding curl_init():
Run:
What is Codacy?
Codacy is an Automated Code Review Tool that monitors your technical debt, helps you improve your code quality, teaches best practices to your developers, and helps you save time in Code Reviews.
Among Codacy’s features:
- Identify new Static Analysis issues
- Commit and Pull Request Analysis with GitHub, BitBucket/Stash, GitLab (and also direct git repositories)
- Auto-comments on Commits and Pull Requests
- Integrations with Slack, HipChat, Jira, YouTrack
- Track issues in Code Style, Security, Error Proneness, Performance, Unused Code and other categories
Codacy also helps keep track of Code Coverage, Code Duplication, and Code Complexity.
Codacy supports PHP, Python, Ruby, Java, JavaScript, and Scala, among others.
Free for Open Source
Codacy is free for Open Source projects.
License
MIT
All versions of coverage with dependencies
gitonomy/gitlib Version >=1.0
symfony/console Version ~2.5|~3.0|~4.0|~5.0