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%
Enterprise
To send coverage in the enterprise version you should:
export CODACY_API_BASE_URL=<Codacy_instance_URL>:16006
Upload Coverage
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codacy-coverage-1.3.2.tar.gz.
File metadata
- Download URL: codacy-coverage-1.3.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a66ba67579dd53606b217763fa9609dd943047419e3d773158e168ddb72bfd1
|
|
| MD5 |
1cf2bffc8f2f33215e2f2469b920c18c
|
|
| BLAKE2b-256 |
3aff3274e8ed87435bb273f9523f8a26204b4a181023d9d0497e22e48a85f000
|
File details
Details for the file codacy_coverage-1.3.2-py2.py3-none-any.whl.
File metadata
- Download URL: codacy_coverage-1.3.2-py2.py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
557ad315081f19aabcd3064f933ed0cf57dd08695de73352ba2bde3de17d788a
|
|
| MD5 |
38df1eacec2b5c0660748b5847a047f4
|
|
| BLAKE2b-256 |
4a6a270758e04b758625e975b9d56be727695a346baecc24b84fbdbb0a4fbcf8
|