Skip to main content

Pytest plugin for uploading pytest-cov results to codecov.io

Project description

PyPI version Python versions Tests Codecov.io

Pytest plugin for uploading pytest-cov results to codecov.io


This pytest plugin was generated with Cookiecutter along with @hackebrot’s cookiecutter-pytest-plugin template.

Features

  • Uploads coverage results to codecov.io at the end of the tests.

  • Detects current project slug, branch and commit using GitPython, when installed and running inside a git repository.

Requirements

Installation

You can install “pytest-codecov” via pip from PyPI:

$ pip install pytest-codecov

Usage

  • Add --codecov to pytest arguments to enable upload

  • Supply your Codecov token either through --codecov-token= or CODECOV_TOKEN environment variable. Refer to your CI’s documentation to properly secure that token.

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the MIT license, “pytest-codecov” is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

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

pytest_codecov-0.6.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

pytest_codecov-0.6.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file pytest_codecov-0.6.0.tar.gz.

File metadata

  • Download URL: pytest_codecov-0.6.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for pytest_codecov-0.6.0.tar.gz
Algorithm Hash digest
SHA256 7413df47c9e628ed38f36581d02e9f631ceddfccff59d494f93051cfb82d59e2
MD5 e49b4d0a5cf09fef10285beb28459a47
BLAKE2b-256 427a5b35044ca4fea1177f0727730fa33c9eb421212edde141bfea11fe228d78

See more details on using hashes here.

File details

Details for the file pytest_codecov-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_codecov-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7293121eaf163d03f029cb4ca49a77340495824d4cd300ca16fb85ececc73572
MD5 92c40dad51a9ae3146d2419e8959110f
BLAKE2b-256 c219c4db8781deadde0555e157cc76237bc09a04e6e4775fd097af6ccb3c9891

See more details on using hashes here.

Supported by

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