-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Demonstrate how to merge Jacoco reports from different sub-projects #10708
Comments
In practice, merging is complicated. Consider the build consists of Of course So it looks like there are at least two ways to approach that:
|
A connected piece is sending the coverage information to https://sonarcloud.io A connected piece is merging coverage from custom-made |
Thanks @vlsi for adding more information on this. We are hearing the complaint about the documentation and we hope to start moving forward with focused changes that address common pain in build scripts. This input you are providing is very valuable for us to write the best samples for users but also address any issue those common use cases cause to our users. |
One more data point: JaCoCo generates The catch for me there was I thought of "reports" for human processing. I thought "JaCoCo xml report" was meant for the case when I would like to process it myself with my own tool. On contrary, XML "reports" are very often mandatory for external tools (e.g. coverage, bugs, etc), so it might make sense to drop a note like |
See also the discussion here and mockito/mockito#1699. |
Documenting how to do this / creating a sample is the first step. At the end of the day, it should be easier as it's such a common use case. |
What is the state of this, it seems as if it is broken as of 6.0 I can seem to do what is outline here with 6.0.1: https://gist.github.com/aalmiray/e6f54aa4b3803be0bcac#file-build-gradle-L31-L42 I get
ok digging through 5x vs 6x figured this out and it seems to work
|
Starting with 6.4, we added a sample showing how to properly configure a multi-module build using jacoco (HTML or XML for Sonar). As mentioned above already, |
Expected Behavior
Users are left figuring out how this is done from the documentation or by searching the web.
Current Behavior
It is not obvious to users how this can be achieved. It seems like a common scenario that we should demonstrate.
The text was updated successfully, but these errors were encountered: