pytest-cov icon indicating copy to clipboard operation
pytest-cov copied to clipboard

Coverage plugin for pytest.

Results 169 pytest-cov issues
Sort by recently updated
recently updated
newest added

#### What's the problem this feature will solve? I can: 1. run tests with package `pytest-cov` by command run `coverage run --rcfile=.coveragerc -m pytest`. 2. generate coverage with package `pytest-cov`...

Move the ``testing`` extras from the setup.py to their own requirements_test.txt file. Please let me know if I'm missing some details; I've put this together rather quickly. The rationale here...

# Summary The target function is below.(This is code that occurs the issue.) ```py def main(value): result = None try: try: result = 1 / value finally: if result is...

Coverage 7.5 now writes out two other files when generating a HTML report -- class_index and function_index. We check explicitly for which files have been written, so add those two...

# Summary when running with pytest-cov I get a ' Module x was previously imported, but not measured (module-not-measured)' but it is actually measured. see the output here: https://github.com/graingert-coef/coverage-test/actions/runs/11383996856/job/31670778809#step:4:33 full...

(and presumably testing)

# Summary I am able to run pytest in watch mode using package `pytest-watch`. However, when I want to see the code coverage with `pytest-cov`, I have to run command...

Coverage supports the `--precision` option which is convenient to adjust reported and expected subpercent coverage, however `pytest-cov` seems not to offer a corresponding `--cov-precision` option.

Hi there, I'm not sure this is a `pytest` bug but here it goes. I have the following `pyproject.toml` configuration ```toml [tool.pytest.ini_options] testpaths = "test" addopts = [ "--import-mode=importlib", #...

# Summary I understand that pytest-cov uses coverage.py under the hood and coverage.py supports `--format=markdown` as an output option. Could this be added as an output format in pytest-cov? This...