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

Fix jacoco output file location #798

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

jpenilla
Copy link
Contributor

Before this change:

Screenshot 2023-12-18 at 5 11 36 PM

@beatngu13 beatngu13 added the full-build Triggers full build suite on PR label Dec 19, 2023
@beatngu13
Copy link
Member

@jpenilla thx for the heads-up!

I'm a bit confused, how is Sonar still able to determine the coverage, given the report is not where it should be? 🤔

@jpenilla
Copy link
Contributor Author

I'm not sure, but I would guess that they scan for reports recursively to support projects with multiple modules. Something behaving like **/reports/jacoco/reports.xml. So it would still end up finding the reports directory even though it's nested inside a strange directory.

@Michael1993
Copy link
Member

This is a nice catch, thank you! That being said, I'd actually prefer completely removing this task as it currently does nothing.

@jpenilla
Copy link
Contributor Author

Do you mean removing the jacoco plugin entirely, or just removing the lines where we change its configuration from the defaults? Even if it's not used by CI anymore, it's still useful to run the report task locally when working on improving test coverage.

@Bukama
Copy link
Member

Bukama commented Jan 2, 2024

As @Michael1993 figured out in the meantime:

1 XML report (unused) and a jacoco report (used by Sonar)
Wait, nevermind
It just doesn't take the output folder into consideration I guess
But sonar does use the task
I thought we ran sonar during the check step automatically

So we need the report and decided to keep it:

Sure. We should fix it then

@Bukama
Copy link
Member

Bukama commented Feb 2, 2024

@beatngu13 Could you please have a look at this as we can merge it or if the path has to be changed again for Sonar? I'm confused here :/

If it's fine see my comment as an approval and feel free to merge.

@Bukama Bukama requested a review from beatngu13 February 2, 2024 15:22
@beatngu13 beatngu13 merged commit 9919bf9 into junit-pioneer:main Feb 2, 2024
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-build Triggers full build suite on PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants