Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pytest-codecov

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pytest-codecov

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

  • 0.6.1
  • PyPI
  • Socket score

Maintainers
1

============== pytest-codecov

.. image:: https://img.shields.io/pypi/v/pytest-codecov.svg :target: https://pypi.org/project/pytest-codecov :alt: PyPI version

.. image:: https://img.shields.io/pypi/pyversions/pytest-codecov.svg :target: https://pypi.org/project/pytest-codecov :alt: Python versions

.. image:: https://github.com/seantis/pytest-codecov/actions/workflows/python-tox.yaml/badge.svg :target: https://github.com/seantis/pytest-codecov/actions :alt: Tests

.. image:: https://codecov.io/gh/seantis/pytest-codecov/branch/master/graph/badge.svg?token=CwujQmq61X :target: https://codecov.io/gh/seantis/pytest-codecov :alt: 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

  • pytest-cov_
  • requests_
  • GitPython_ (Optional, for auto detecting some meta data)

Installation

You can install "pytest-codecov" via pip_ from PyPI_::

$ pip install pytest-codecov

Usage

  • Add :code:--codecov to pytest arguments to enable upload
  • Supply your Codecov token either through :code:--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.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter .. _@hackebrot: https://github.com/hackebrot .. _MIT: http://opensource.org/licenses/MIT .. _cookiecutter-pytest-plugin: https://github.com/pytest-dev/cookiecutter-pytest-plugin .. _file an issue: https://github.com/seantis/pytest-codecov/issues .. _pytest: https://github.com/pytest-dev/pytest .. _tox: https://tox.readthedocs.io/en/latest/ .. _pip: https://pypi.org/project/pip/ .. _PyPI: https://pypi.org/project .. _pytest-cov: https://github.com/pytest-dev/pytest-cov .. _codecov.io: https://codecov.io .. _requests: https://github.com/psf/requests .. _GitPython: https://github.com/gitpython-developers/GitPython

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc