aconrad / pycobertura

A code coverage diff tool for Cobertura reports
MIT License
116 stars 39 forks source link

feat: diff github annotation format #166

Closed goatwu1993 closed 1 year ago

goatwu1993 commented 1 year ago

Implement pycobertura diff --format github-annotation

Motivation: As a code reviewer, sometimes it is useful to see uncovered lines in PR with only changes relative to base_ref

aconrad commented 1 year ago

@goatwu1993 thanks so much for this PR, it's great!

aconrad commented 1 year ago

v3.2.0

I'm not sure why the github-annotation screenshots are broken on pypi as well as others, but not all... 🤔

goatwu1993 commented 1 year ago

@aconrad Hmm, no idea as well. I tried release.sh (without twine upload). unpack the tar.gz the image is still openable. No idea what the black magic behind pypi...

The PRs which I am testing/screenshotting github-annotation show/diff remained opened... https://github.com/goatwu1993/pycobertura-test/pull/6 https://github.com/goatwu1993/pycobertura-test/pull/7