Codacy coverage reporter for Python
Project description
Credits to Ryan for creating this! Python coverage reporter for Codacy https://www.codacy.com
Setup
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:
coverage xml
Install codacy-coverage
You can install the coverage reporter by running:
pip install codacy-coverage
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:
export CODACY_PROJECT_TOKEN=%Project_Token%
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for codacy_coverage-1.2.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71948fc8828d50f006a2210c11974bc266a80ccda38962124b1f9e3a9fb80313 |
|
MD5 | 5c3a14a2b9bffb662d01b81811cc7e4e |
|
BLAKE2b-256 | 0ff6c9f9c70b4d0de8b4ae7bc649b1112aa1a1b12386a161c2ff386d506eba92 |