{"library":"pytest-codecov","title":"pytest-codecov","description":"Pytest plugin for uploading pytest-cov results (coverage reports) to codecov.io. Current version 0.7.0, released 2025-01-26, with support for Python >=3.8. Release cadence is irregular, with major updates every few years.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pytest-codecov"],"cli":null},"imports":["import pytest_codecov"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pytest\nimport os\n\n# Run pytest with coverage and upload to Codecov\n# Set CODECOV_TOKEN as environment variable or in .codecov.yml\nos.environ['CODECOV_TOKEN'] = os.environ.get('CODECOV_TOKEN', '')\n\n# Run tests with coverage and JUnit XML (optional)\nretcode = pytest.main([\n    '--cov=my_package',\n    '--cov-report=xml',\n    '--junit-xml=test-results.xml',\n    'tests/'\n])\n\n# The plugin automatically uploads to Codecov after tests finish","lang":"python","description":"Minimal setup: install pytest-cov and pytest-codecov, then run pytest with --cov and --cov-report=xml. The plugin uploads coverage to Codecov automatically.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}