Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage is not reported on Github PR file changes as mentioned in the documentation #189

Open
mohamedrez opened this issue Jul 23, 2024 · 4 comments

Comments

@mohamedrez
Copy link

Hello and thank you for this package.

I am currently using this to report the missing covered lines on the PR:
pycobertura show --format github-annotation cov.xml

It is being reported on the Action:
Screenshot 2024-07-23 at 11 10 48 am

But not in the file changes:
image

I needed the same as mentioned on the documentation:
image

@aconrad
Copy link
Owner

aconrad commented Jul 25, 2024

@goatwu1993 can you help answer? I'm not familiar with GitHub annotations.

@goatwu1993
Copy link
Contributor

hmm. works at my repo.
Just triggered another run.
goatwu1993/pycobertura-test#7

@goatwu1993
Copy link
Contributor

@mohamedrez It seems to be the error of the file path.
your filename is under the ./rover (rover/common/xxx) while the cobertura (cov.xml) doesn't (common/xxx)

@goatwu1993
Copy link
Contributor

probably can leverage the source/source prefix/filesystem/real_filename but I do not know where to add.

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

No branches or pull requests

3 participants