coveragepy
coveragepy copied to clipboard
The code coverage tool for Python
Hi, I'm trying to use coverage to cover tests written in unittest in a production framework, with several constraints, but it fails with this error: ` raise NoSource(f"No source for...
The background of this issue is that I need to collect the coverage data of running Python project without interrupting the process. However I found that it always only shows...
I am wondering if this is even possible or not by using `coveragepy` (or `pytest-cov`). I want to get a mapping dictionary `dict[str, set[str]]` from a function to corresponding test...
**Is your feature request related to a problem? Please describe.** The `[paths]` section of a `.coveragerc` is a fragile beast. By way of example, if I'm testing my Python package...
I apologise after having written this that it is long. I love coverage and I use it a lot so many thanks! I have been having issues using coverage with...
**Describe the bug** Generated html coverage report of file with f-string with double curly brackets like: `f"{{this is not interpolated}}"` is wrongly rendered by removing one set of bracket. **To...
**Describe the bug** I am using the coverage 5.5 API to run code coverage on my server. This server is written using Django. I have implemented the solution as per...
This patch provides a new configuration — `.coveragerc.toml `. Considering that many projects have switched to toml configurations, this change offers a more flexible approach to manage coverage settings. Resolves...
**Describe the bug** Consider a project: ``` pyproject.toml my_local_plugin.py src/ foo.py ``` ```toml # pyproject.toml [tool.coverage.run] plugins = ["my_local_plugin"] ``` ```python # my_local_plugin.py def coverage_init(*args, **kwargs): pass ``` And then...
**Describe the bug** While upgrading the Python version for the Oppia Foundation organization from 3.9.20 to 3.10.16, I noticed that some backend files are missing coverage for lines that are...