coveragepy
coveragepy copied to clipboard
The code coverage tool for Python
I recently hacked coverage to scratch my own itch and noticed that the internal code could be internally improved with newer Python syntax. The primary thing I noticed (because it...
I've noticed that files / a package is missing in `coverage.xml` (via `coverage xml`), but not with `coverage report`. I have `project/settings/__init__.py` and `testing/settings/__init__.py`, but only the latter is in...
use cases: * fail on unexecuted files * starting to do unit tests in a big project, overall coverage is low - but we can increase per file coverage more...
**Is your feature request related to a problem? Please describe.** The new `relative_files` config options toggle whether relative paths are stored in the data files, and also how they're reported...
For any of the files in my project, the cobertura.xml contains always a 0 for complexity. I have hard time in understanding if the value is not computed by coverage.py...
**Describe the bug** If an implicit namespace package (directory without `__init__.py`) exists within a source module and is not imported, coverage won't discover it or report it as uncovered. I...
**Current Problem** I'm running coverage for multiple Python versions on both Linux and Windows. They are all run on Gitlab, with the Windows tests using Python install on the host,...
**Describe the bug** When the tested program is run from the coverage module (-m coverage run), the sys.path is wrong. **To Reproduce** Create the following small python script: ``` #!/usr/bin/env...
*Originally reported by* **Anonymous** ---------------------------------------- Hello, I didn't find this option anywhere in the documentation so i hope i haven't missed anything. The idea is that right now we can...
**Is your feature request related to a problem? Please describe.** In our team, we want to assert that at least 80% branch coverage are reached. Meanwhile, statement coverage should also...