coveragepy
coveragepy copied to clipboard
The code coverage tool for Python
**Describe the bug** Whenever on Windows `data_paths` are on a disk different from that of the current dir's, there will be a well-known relpath failure. The actual use of `relpath`...
Fixes #1428. I took inspiration from #896, which solved the same issue with `relpath` experienced here, on a different section of code. @nedbat do you happen to have any suggestions...
Hi,First of all, thanks for this library! The question When I was testing with Coverage.py, something went wrong: Traceback (most recent call last): File "/home/bromiao/.local/lib/python3.8/site-packages/coverage/sqldata.py", line 1107, in execute return...
https://github.com/nedbat/coveragepy/runs/7574680068?check_suite_focus=true Output from the failing test ``` _______________ EnvironmentTest.test_coverage_run_is_like_python _______________ [gw0] linux -- Python 3.9.12 /home/runner/work/coveragepy/coveragepy/.tox/pypy3/bin/python self = def test_coverage_run_is_like_python(self): with open(TRY_EXECFILE) as f: self.make_file("run_me.py", f.read()) expected = self.run_command("python run_me.py")...
When specifying a coverage filename using the `COVERAGE_FILE` environment variable, special characters are not handled correctly. I use that facility to set the name of the coverage file to match...
**Is your feature request related to a problem? Please describe.** It's easy to increase coverage using some testing strategies (eg: [SnapshotTest](https://github.com/syrusakbary/snapshottest)), but coverage stats are skewed for other strategies (eg:...
**Describe the bug** ``` New process: executable: /home/blibee/miniconda3/envs/robotsocketenv/bin/python New process: cmd: None New process: pid: 630905, parent pid: 663785 Setting context: None -- config ---------------------------------------------------- attempted_config_files: coverage.ini branch: True command_line:...
**Describe the bug** Missing branches detail missing from JSON format **To Reproduce** How can we reproduce the problem? Please *be specific*. Don't link to a failing CI job. Answer the...
**Is your feature request related to a problem? Please describe.** I am currently trying to generate a code coverage report for a monolith which gives me the percentage at each...
Not sure if this is a bug in coverage itself, but as pinning coverage to 6.4 fixed it for us, i'll ask here first. When i run pytest with coverage...