Pytest plugin for uploading pytest-cov results to codecov.io
Project description
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
GitPython (Optional, for auto detecting some meta data)
Installation
You can install “pytest-codecov” via pip from PyPI:
$ pip install pytest-codecov
Usage
Add
--codecov
to pytest arguments to enable uploadSupply 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
Built Distribution
File details
Details for the file pytest-codecov-0.4.0.tar.gz
.
File metadata
- Download URL: pytest-codecov-0.4.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79b88c14c6abafa5e8a017b2d2043e21873bef016dee7d24cc824b5f7b189b91 |
|
MD5 | 7234a6e1bb3318c0d850ec19c92bb0f1 |
|
BLAKE2b-256 | 99bb232b2da6ec0499e44471c52575ce54ba97a03108f7b14e9e2e5ae56f5d2b |
File details
Details for the file pytest_codecov-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_codecov-0.4.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 662549fd1be88e1abc57d1c0b64053936ea507e1cf97c353fc0f0e75b009459b |
|
MD5 | a78877e340002e6c7fa87387778ab5b6 |
|
BLAKE2b-256 | a6d6aea95f385806671606b6254ea1edaf426cf34d82058cbe935ec6ac171354 |