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

Different coverage values between jacoco file and jacoco-reporter #64

Open
michalwilk96 opened this issue Mar 8, 2024 · 3 comments
Open
Assignees

Comments

@michalwilk96
Copy link

Describe the bug
After unit tests execution and performing jacoco-reporter action with jacoco.xml file produced by jacoco plugin, there's a difference between actual coverage produced by your jacoco-reporter action and jacoco html also produced by jacoco plugin along with jacoco.xml.

Expected behavior
jacoco-reporter should report the same value of coverage as visible in jacoco html / xml file.

Screenshots
I attach screen with visible difference.
45% coverage value is taken from "Missed Instructions" column from jacoco html file.
While jacoco-reporter produces 50.73% value.

There's no other coverage value available in this jacoco html file, which equals the one provided in the jacoco-reporter.
image

@PavanMudigondaTR PavanMudigondaTR self-assigned this Mar 10, 2024
@PavanMudigondaTR
Copy link
Collaborator

@michalwilk96 Could you please review this issue #43 as it looks similar which turned out to be not defect on jacoco-reporter gh action.

@michalwilk96
Copy link
Author

Hi @PavanMudigondaTR ,
I took a look on attached issue, but it's another case.
I've generated reported by jacoco, which includes all "production" classes, report shows following values:
image

And jacoco-reporter plugin shows:
image

@michalwilk96
Copy link
Author

First, I thought that actual coverage is sum of Missed Instructions and Missed Branches, but when I took a look on another jacoco report of my another service, I got actual coverage ~50% in jacoco-reporter, but generated jacoco report contains missed branches = 45% & missed instructions = 25% = 70%.

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

2 participants