Skip to main content

Codacy coverage reporter for Python

Project description

Credits to Ryan for creating this! Python coverage reporter for Codacy https://www.codacy.com

Codacy Badge Codacy Badge Build Status PyPI version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codacy-coverage-1.3.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codacy_coverage-1.3.2-py2.py3-none-any.whl (6.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file codacy-coverage-1.3.2.tar.gz.

File metadata

File hashes

Hashes for codacy-coverage-1.3.2.tar.gz
Algorithm Hash digest
SHA256 6a66ba67579dd53606b217763fa9609dd943047419e3d773158e168ddb72bfd1
MD5 1cf2bffc8f2f33215e2f2469b920c18c
BLAKE2b-256 3aff3274e8ed87435bb273f9523f8a26204b4a181023d9d0497e22e48a85f000

See more details on using hashes here.

File details

Details for the file codacy_coverage-1.3.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for codacy_coverage-1.3.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 557ad315081f19aabcd3064f933ed0cf57dd08695de73352ba2bde3de17d788a
MD5 38df1eacec2b5c0660748b5847a047f4
BLAKE2b-256 4a6a270758e04b758625e975b9d56be727695a346baecc24b84fbdbb0a4fbcf8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page