pytest-cov
pytest-cov copied to clipboard
Coverage plugin for pytest.
# Summary Implement an option for pytest-cov that produces simpler, safer HTML with no external CSS that would be stripped by tools like Azure DevOps. Azure DevOps by default strips...
Coverage.py 6.3 gained support for the LCOV output format. Add support for this to *pytest-cov* via `--cov-report=lcov[:dest]`. Fix: #535 My main motivation was that coveralls currently only supports LCOV in...
The old way using marks is being deprecated in pytest 7.2: https://github.com/pytest-dev/pytest/pull/9118
There has been support for `pyproject.toml` ever since 5.0 https://github.com/nedbat/coveragepy/issues/664#issuecomment-552516277 and based on https://coverage.readthedocs.io/en/6.2/config.html it will automatically find the right file (logic here: https://github.com/nedbat/coveragepy/blob/6.2/coverage/config.py#L493-L519) I tested this locally and now...
Hi, I am seeing an error with the coverage dependency and am being forced to manually pin my version of coverage to fix the issue: When I don't pin a...
# Summary ## Expected vs actual result I want to integrate all the python files in from my `src` folder only, even the untested ones. I managed to get the...
# Summary I would like to collect coverage for an explicit set of source files. Outside of pytest-cov, I can make a `coveragerc` that uses [include](https://coverage.readthedocs.io/en/6.4.1/config.html#run-include) to specify what I...
Following sample test case causes pytest-cov to fail: ```python import os import subprocess import sys import tempfile import textwrap import unittest class Test(unittest.TestCase): maxDiff = None def test_deleted_working_directory(self): """Relative Python...
# Summary Sometime in the past year, pytest-cov started emitting lots of CoverageWarnings for files unrelated to the project under test, something like: ``` /Users/jaraco/code/main/tempora/.tox/python/lib/python3.10/site-packages/coverage/report.py:87: CoverageWarning: Couldn't parse '/private/var/folders/sx/n5gkrgfx6zd91ymxr2sr9wvw00n8zm/T/pep517-build-env-c14y8sp8/lib/python3.10/site-packages/wheel/wheelfile.py': No...
# Summary According to the log, the backward function in subclass of torch.autograd.Function has been executed. but pytest-cov reports this function is missing.  **please help me check this problem,...