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.5.0.tar.gz
.
File metadata
- Download URL: pytest-codecov-0.5.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70477bdf3d9641a8be55bdfae755eaa54eee89706f5277a5b443f6431eb53a76 |
|
MD5 | 24dc2ff1c54b2e1f6c0f29bde22d817a |
|
BLAKE2b-256 | 43943116d5a23d6f658c77bf525f4c102ac2bb35ab22be389d5b9c1745148ce1 |
File details
Details for the file pytest_codecov-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_codecov-0.5.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fe37c7a82c76f7bcdf668219e3386f12a51652f3b968ff317fb8024e45a79b6 |
|
MD5 | 10dcd0cb9b6f411efec5558e0f280465 |
|
BLAKE2b-256 | 9bd06de46ca5ef6f8ccf34a07cfa579114f3bb8a4ba23b51468a48508854f291 |