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.5.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

pytest_codecov-0.5.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file pytest-codecov-0.5.1.tar.gz.

File metadata

  • Download URL: pytest-codecov-0.5.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for pytest-codecov-0.5.1.tar.gz
Algorithm Hash digest
SHA256 6850bec3bd5313b574f0710b75527652297b90ae316229b44f6446b896f74140
MD5 0e15212bca95d375f52b56e469980346
BLAKE2b-256 6b978b9165f99b2ce8206f2238c45dfc221c3af8c0ea69791419ee8d63dffe49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_codecov-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a50aaf5d2f5e157b02b83e3630ca61b5684e6b620f29ffa84c994db78252967d
MD5 9d1c0bb507b28f5004461095d94c2835
BLAKE2b-256 bd625f0a6d9f0e98c97e4312ccee1d91e22d44b550127fe58747a2614b717926

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