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.3.0.tar.gz
.
File metadata
- Download URL: pytest-codecov-0.3.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0c7d033d3872aae189026e1b0b1088c3ae7edce46dfe68c700d70ddb5c54647 |
|
MD5 | 1a4b0c5f78c67b0dd3e07396b4b7b188 |
|
BLAKE2b-256 | aa74917aa36c46f858e6b06d8b97ea4fb34e37fb17001e33d034798d21fb7158 |
File details
Details for the file pytest_codecov-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_codecov-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | edb08fea0d19ec151407c96e5c22aae4f2f132249925a74c09443f5ac421e966 |
|
MD5 | 5cb55669d2b0ba5fc6e3ab3560667953 |
|
BLAKE2b-256 | b35ac60f4cd93314bb9dea58e8083a5a816e27fe8db72c5fecd9fa1b40656372 |