Codacy coverage reporter for Python
Credits to Ryan for creating this! Python coverage reporter for Codacy https://www.codacy.com
Codacy assumes that coverage is previously configured for your project.
To generate the required coverage XML file, calculate coverage for your project as normal, by running:
You can install the coverage reporter by running:
pip install codacy-coverage
To update Codacy, you will need your project API token. You can create the token in Project -> Settings -> Integrations -> Add Integration -> Project API
Then set it in your terminal, replacing %Project_Token% with your own token:
Enterprise only (Skip this step if you are using https://www.codacy.com)
To send coverage in the enterprise version you should:
Next, simply run the Codacy reporter. It will find the current commit and send all details to your project dashboard:
python-codacy-coverage -r coverage.xml
Note: You should keep your API token well protected, as it grants owner permissions to your projects.
If you are using any CI that does not have .git information, you can specify the commit with -c and the clone directory with -d. For example if you are using AppVeyor you can:
python-codacy-coverage -c $APPVEYOR_REPO_COMMIT -d $APPVEYOR_BUILD_FOLDER -r coverage.xml
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|codacy_coverage-1.3.9-py2.py3-none-any.whl (7.3 kB) Copy SHA256 Checksum SHA256||2.7||Wheel||Nov 14, 2017|
|codacy-coverage-1.3.9.tar.gz (5.1 kB) Copy SHA256 Checksum SHA256||–||Source||Nov 14, 2017|