Skip to content

Add --show-covered flag to highlight covered diff lines in HTML report#600

Merged
Bachmann1234 merged 2 commits into
Bachmann1234:mainfrom
duxiaocheng:feature-show-covered
May 30, 2026
Merged

Add --show-covered flag to highlight covered diff lines in HTML report#600
Bachmann1234 merged 2 commits into
Bachmann1234:mainfrom
duxiaocheng:feature-show-covered

Conversation

@duxiaocheng
Copy link
Copy Markdown
Contributor

Introduce a new --show-covered CLI option for diff-cover that, when enabled, additionally highlights covered diff lines (in green) in the HTML coverage report alongside the existing red highlighting for missing lines.

Introduce a new `--show-covered` CLI option for diff-cover that, when
enabled, additionally highlights covered diff lines (in green) in the
HTML coverage report alongside the existing red highlighting for
missing lines.
@duxiaocheng
Copy link
Copy Markdown
Contributor Author

The pull request is addressing the issue #398

This is an example for html report. report_with_show_covered.html

image

@Bachmann1234
Copy link
Copy Markdown
Owner

Thanks for the pr! Ill get this out shortly!

@Bachmann1234 Bachmann1234 merged commit d230c12 into Bachmann1234:main May 30, 2026
14 checks passed
@Bachmann1234
Copy link
Copy Markdown
Owner

@duxiaocheng thanks again! This is released! https://pypi.org/project/diff-cover/10.3.0/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants