Third-party packages are now ignored in coverage reporting. This solves a few problems:
Coverage will no longer report about other people’s code (issue 876). This is true even when using --source=. with a venv in the current directory.
Coverage will no longer generate “Already imported a file that will be measured” warnings about coverage itself (issue 905).
The HTML report uses j/k to move up and down among the highlighted chunks of code. They used to highlight the current chunk, but 5.0 broke that behavior. Now the highlighting is working again.
The JSON report now includes percent_covered_display, a string with the total percentage, rounded to the same number of decimal places as the other reports’ totals.
The JSON report now includes details of which branches were taken, and which
are missing for each file. Thanks, Christoph Blessing (pull 1438). Closes
issue 1425.
Starting with coverage.py 6.2, class statements were marked as a branch.
This wasn't right, and has been reverted, fixing issue 1449_. Note this
will very slightly reduce your coverage total if you are measuring branch
coverage.
Packaging is now compliant with PEP 517, closing issue 1395.
A new debug option --debug=pathmap shows details of the remapping of
paths that happens during combine due to the [paths] setting.
Fix an internal problem with caching of invalid Python parsing. Found by
OSS-Fuzz, fixing their bug 50381_.
Fix a failure when combining data files if the file names contained
glob-like patterns (pull 1405_). Thanks, Michael Krebs and Benjamin
Schubert.
Fix a messaging failure when combining Windows data files on a different
drive than the current directory. (pull 1430, fixing issue 1428).
Thanks, Lorenzo Micò.
Fix path calculations when running in the root directory, as you might do in
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps coverage from 5.5 to 6.5.0.
Release notes
Sourced from coverage's releases.
Changelog
Sourced from coverage's changelog.
... (truncated)
Commits
0ac2453
docs: sample html report0954c85
build: prep for 6.5.095195b1
docs: changelog for json report branch details789f175
fix: keep negative arc valuesaabc540
feat: include branches taken and missed in JSON report. #1425a59fc44
docs: minor tweaks to db docsd296083
docs: add a note to the class-branch change7f07df6
chore: make upgrade6bc29a9
build: use the badge action coloringfd36918
fix:class
statements shouldn't be branches. #1449Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)