Repository navigation
Releases
Releases · MishaKav/pytest-coverage-comment
v1.13.1
What's Changed
- fix the
multiple-filestable breaking when a component's coverage files are missing (e.g. its tox env failed) — a blank line was added inside the table, so GitHub rendered the following rows as plain text (#327), thanks to @h0nIg for contribution - README examples now fail the test step when pytest fails (
shell: bashenablespipefail, sopytest | teeno longer hides the exit code) and still post the coverage comment withif: ${{ !cancelled() }}(#325, #329), thanks to @ArturKlauser for contribution
Full Changelog: v1.13.0...v1.13.1
v1.13.0
What's Changed
- new
annotate-missing-linesoption: adds GitHub annotations on lines added in the pull request or push that aren't covered by tests (missing lines and partial branches), shown right below the code in the "Files changed" tab. Works with txt, xml and json coverage onpull_request,pull_request_targetandpushevents. Combine it withhide-comment: trueto get annotations without a PR comment, fixes #321 - new
annotation-typeoption to set the annotation level:notice,warning(default) orerror coverage-path-prefixis now stripped only from the start of a changed file's path (previously the first match anywhere in the path was removed)
Full Changelog: v1.12.5...v1.13.0
v1.12.5
What's Changed
- escape report values in the coverage table and keep them out of markdown parsing, so a crafted coverage report can't inject HTML, markdown, links or a fake badge into the comment
- url-encode file paths in coverage table links, don't link paths with
.., support windows\paths, and strip the workspace prefix from missing-line links - fix a crash when a coverage report has a top-level folder named like an Object member (e.g.
constructor)
Full Changelog: v1.12.4...v1.12.5
v1.12.4
What's Changed
- bump dev dependencies:
vitest5.0.5,@vitest/coverage-v85.0.5,@types/node26.6.5,eslint10.13.0,typescript-eslint8.72.0,prettier3.9.10,vite8.3.5 - bump
undicifrom 6.29.0 to 6.29.1 (fixes two high severity vulnerabilities)
Full Changelog: v1.12.3...v1.12.4
v1.12.3
What's Changed
- bump dev dependencies:
vitest5.0.3,@vitest/coverage-v85.0.3,@types/node26.6.4,eslint10.12.0,typescript-eslint8.71.0,prettier3.9.9 (#309) - bump
undicifrom 6.28.0 to 6.29.0 (#309) - bump
brace-expansionfrom 5.0.8 to 5.0.12 (fixes four security vulnerabilities) (#309)
Full Changelog: v1.12.2...v1.12.3
v1.12.2
What's Changed
- bump dev dependencies:
@types/node26.4.0,@vercel/ncc0.45.0,@vitest/coverage-v84.1.11,vitest4.1.11,eslint10.9.1,typescript-eslint8.68.0 (#302)
Full Changelog: v1.12.1...v1.12.2
v1.12.1
What's Changed
- fix a rare case where the comment was still too long and failed to post — it's now always truncated to fit GitHub's limit (#301), fixes #299
Full Changelog: v1.12.0...v1.12.1
v1.12.0
What's Changed
- show a warning inside the comment itself when it's too long (over 65,536 characters) and the detailed coverage report gets dropped — previously the report silently disappeared and the reason was only visible in the job log. The warning links to the job log, which lists the ways to reduce the comment size (#298), thanks to @mschoettle for contribution
Full Changelog: v1.11.2...v1.12.0
v1.11.2
What's Changed
- improve the comment message when
report-only-changed-filesis enabled and none of the changed files appear in the coverage report — it now says "No changed files were found in the coverage report" instead of the misleading "No files were changed during this commit" (#296), thanks to @mschoettle for contribution
Full Changelog: v1.11.1...v1.11.2
v1.11.1
What's Changed
- bump
undicifrom 6.27.0 to 6.28.0 (fixes three security vulnerabilities) - Fix badge creation on Dependabot and fork PRs [skip ci] by @MishaKav in #295
Full Changelog: v1.11.0...v1.11.1