-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
report-aggregate does not include report from current project #812
Comments
There are already two PRs #430 and #680 (so please search before creation of ticket in future). They are almost identical and contain your proposal, as well as description of why they was not accepted as is. In case if this description is unclear: current behavior is there since the inception of
proposed change will bother users who don't want this change - for example we don't need empty Addition of configuration option to resolve this might require changes for existing users, and most importantly based on our experience unconditional clearly stated behavior is preferable than conditional. So maybe you can propose something better? |
Can we make it configurable, maybe |
Just saw this bug, so I'm the third one to create a pull request #970 for the same thing with the same code. Sorry about this. The documentation may be clear but the behavior is not coherent. It's very disturbing that jacoco.exec of the current project is used but not its sources. My use case is to test a multi module project, I want the coverage of all sources but for me it's OK if the test of one class is in another module. I just need to combine all jacoco.xml with diff-cover after. If you don't include the root project, I will have twice more jacoco.xml to combine. I guess the |
please provide support for this. This is a blocker for us |
Two sentences down from it is this:
Reading this I assume that the current project should be expected as well. At least that is how I read documentation. |
How is it going on? |
This was implemented in version 0.8.9: #1007 See https://www.jacoco.org/jacoco/trunk/doc/report-aggregate-mojo.html |
@paulo-santos Thanks for pointing this out. I'll update this issue. |
Steps to reproduce
Create a multi-module maven project with one module as aggregator. Following is a sample jacoco plugin configuration
https://stackoverflow.com/questions/53983849/jacoco-report-aggregate-include-report-of-aggregate-project
JaCoCo version: 0.8.2
Operating system: Windows
Tool integration: Maven
Expected behaviour
report-aggregate should include test report from current aggregate module
Actual behaviour
report is generated only with dependent modules
The plugin does load the execution data for current project, but creates report only from dependencies . May we should just add following before the for loop
support.processProject(group, getProject().getArtifactId(), getProject(), getIncludes(), getExcludes(), sourceEncoding);
The text was updated successfully, but these errors were encountered: