pytest-codecov


Namepytest-codecov JSON
Version 0.6.1 PyPI version JSON
download
home_pageNone
SummaryPytest plugin for uploading pytest-cov results to codecov.io
upload_time2024-12-11 08:04:49
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseThe MIT License (MIT) Copyright (c) 2021 David Salvisberg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ==============
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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pytest-codecov",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "David Salvisberg <david.salvisberg@seantis.ch>",
    "keywords": null,
    "author": null,
    "author_email": "David Salvisberg <david.salvisberg@seantis.ch>",
    "download_url": "https://files.pythonhosted.org/packages/fc/4a/792b9204bff31531bb21a517bd917ab08ca43f80c9ea4d69c8cecce5378b/pytest_codecov-0.6.1.tar.gz",
    "platform": null,
    "description": "==============\npytest-codecov\n==============\n\n.. image:: https://img.shields.io/pypi/v/pytest-codecov.svg\n    :target: https://pypi.org/project/pytest-codecov\n    :alt: PyPI version\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-codecov.svg\n    :target: https://pypi.org/project/pytest-codecov\n    :alt: Python versions\n\n.. image:: https://github.com/seantis/pytest-codecov/actions/workflows/python-tox.yaml/badge.svg\n    :target: https://github.com/seantis/pytest-codecov/actions\n    :alt: Tests\n\n.. image:: https://codecov.io/gh/seantis/pytest-codecov/branch/master/graph/badge.svg?token=CwujQmq61X\n    :target: https://codecov.io/gh/seantis/pytest-codecov\n    :alt: Codecov.io\n\nPytest plugin for uploading `pytest-cov`_ results to `codecov.io`_\n\n----\n\nThis `pytest`_ plugin was generated with `Cookiecutter`_ along with `@hackebrot`_'s `cookiecutter-pytest-plugin`_ template.\n\n\nFeatures\n--------\n\n* Uploads coverage results to `codecov.io` at the end of the tests.\n* Detects current project slug, branch and commit using `GitPython`, when installed and running inside a git repository.\n\n\nRequirements\n------------\n\n* `pytest-cov`_\n* `requests`_\n* `GitPython`_ (Optional, for auto detecting some meta data)\n\n\nInstallation\n------------\n\nYou can install \"pytest-codecov\" via `pip`_ from `PyPI`_::\n\n    $ pip install pytest-codecov\n\n\nUsage\n-----\n\n* Add :code:`--codecov` to pytest arguments to enable upload\n* 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.\n\n\nContributing\n------------\nContributions are very welcome. Tests can be run with `tox`_, please ensure\nthe coverage at least stays the same before you submit a pull request.\n\n\nLicense\n-------\n\nDistributed under the terms of the `MIT`_ license, \"pytest-codecov\" is free and open source software\n\n\nIssues\n------\n\nIf you encounter any problems, please `file an issue`_ along with a detailed description.\n\n.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter\n.. _`@hackebrot`: https://github.com/hackebrot\n.. _`MIT`: http://opensource.org/licenses/MIT\n.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin\n.. _`file an issue`: https://github.com/seantis/pytest-codecov/issues\n.. _`pytest`: https://github.com/pytest-dev/pytest\n.. _`tox`: https://tox.readthedocs.io/en/latest/\n.. _`pip`: https://pypi.org/project/pip/\n.. _`PyPI`: https://pypi.org/project\n.. _`pytest-cov`: https://github.com/pytest-dev/pytest-cov\n.. _`codecov.io`: https://codecov.io\n.. _`requests`: https://github.com/psf/requests\n.. _`GitPython`: https://github.com/gitpython-developers/GitPython\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)  Copyright (c) 2021 David Salvisberg  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Pytest plugin for uploading pytest-cov results to codecov.io",
    "version": "0.6.1",
    "project_urls": {
        "Repository": "https://github.com/seantis/pytest-codecov"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a5a0945bd98431f5fe910af09e7fd4afc3379e90ce5775908feafe483882f4d7",
                "md5": "80917d84dc6896de902d4982a8add0c5",
                "sha256": "f876b294ac0fac136b3e96c6ae87f6405ac004eda5b4509a6fc8125aaae640b9"
            },
            "downloads": -1,
            "filename": "pytest_codecov-0.6.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "80917d84dc6896de902d4982a8add0c5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 7970,
            "upload_time": "2024-12-11T08:04:48",
            "upload_time_iso_8601": "2024-12-11T08:04:48.644571Z",
            "url": "https://files.pythonhosted.org/packages/a5/a0/945bd98431f5fe910af09e7fd4afc3379e90ce5775908feafe483882f4d7/pytest_codecov-0.6.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fc4a792b9204bff31531bb21a517bd917ab08ca43f80c9ea4d69c8cecce5378b",
                "md5": "116913654e5ccc8154efa70d01ef6310",
                "sha256": "352c28d25d1c47b11c62628f85e184cc1ccdecac562102c35c968a1867c1e19c"
            },
            "downloads": -1,
            "filename": "pytest_codecov-0.6.1.tar.gz",
            "has_sig": false,
            "md5_digest": "116913654e5ccc8154efa70d01ef6310",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 10558,
            "upload_time": "2024-12-11T08:04:49",
            "upload_time_iso_8601": "2024-12-11T08:04:49.998853Z",
            "url": "https://files.pythonhosted.org/packages/fc/4a/792b9204bff31531bb21a517bd917ab08ca43f80c9ea4d69c8cecce5378b/pytest_codecov-0.6.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-11 08:04:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "seantis",
    "github_project": "pytest-codecov",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pytest-codecov"
}
        
Elapsed time: 0.41084s