-
Notifications
You must be signed in to change notification settings - Fork 20
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
[WIP] Fix: Report aggregation for jacoco #826
base: main
Are you sure you want to change the base?
Conversation
pom.xml
Outdated
<execution> | ||
<id>default-report</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>report-aggregate</goal> | ||
</goals> | ||
<configuration> | ||
<includeCurrentProject>true</includeCurrentProject> | ||
<formats> | ||
<format>XML</format> | ||
</formats> | ||
</configuration> | ||
</execution> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sonar.yml
job is looking for the jacoco.xml
files in target/site/jacoco
and report-aggregate
puts them in target/site/jacoco-aggregate
. You should be able to add <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory>
to override it to the expected location.
Also, just a nit - but this XML block can be indented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes! I missed that change in this commit. But @MikeEdgar one concern/question I have is that
Even with these changes, in the operator
index.html
we see api
and common
coverage but not operator
coverage. Same for sync
. I think we are missing something here. What do you think?
I experimented with report
and report-aggregate
but had no luck.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something is definitely still not right... I'm checking now too.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
FYI, version 0.8.9 of the JaCoCo plugin was released. |
But Mike, the version hasn't been released to the maven repo can we still use the 0.8.9 in our pom ? |
@biswassri , that repo is a not current. See Maven Central. It was only just tagged a few days ago. |
Oh okay! Thanks for letting me know. |
No description provided.