During report-aggregate parent project is missing

100 views
Skip to first unread message

mav...@ext.csas.cz

unread,
Jun 27, 2016, 3:28:38 AM6/27/16
to JaCoCo and EclEmma Users
Hi,
when using new feature report-aggregate data from the parent project (the project which contains in pom.xml report-aggregate goal) are not displayed in the report.

As a workaround I can use two reports "report" + "report-aggregate", but 2 reports instead of one is little confusing.

I have prepared little fix, see https://github.com/jacoco/jacoco/pull/430

Tests in AppVeyor works fine, Travis CI failed but because of PermGem space. I doubt my fix is responsible for that.

Best Regards,
Martin.

Evgeny Mandrikov

unread,
Jun 28, 2016, 3:03:17 AM6/28/16
to JaCoCo and EclEmma Users, mav...@ext.csas.cz
Hi,

I have prepared little fix, see https://github.com/jacoco/jacoco/pull/430

Answered in PR.

Travis CI failed but because of PermGem space. I doubt my fix is responsible for that.

False-positive alarm, build is green in Travis after restart.

mome...@gmail.com

unread,
Jun 29, 2016, 5:16:46 PM6/29/16
to JaCoCo and EclEmma Users, mav...@ext.csas.cz
Hi,

You are right, usage of words "root project" was not correct. Nevertheless primary intention was to added the classes from module "report" from your example . Also your test project "it-report-aggregate" generates site which DOES NOT contain ReportTest class located report module.

During generating report/site original implementation loads all exec files from all submodules and also from "report" module. But it omits "analyzing" classes from report module. Here is the log from your project. I guest it is wrong

[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report-aggregate (report-aggregate) @ report ---
[INFO] Loading execution data file /home/martin/git/jacoco/jacoco-maven-plugin.test/it/it-report-aggregate/report/target/jacoco.exec
[INFO] Loading execution data file /home/martin/git/jacoco/jacoco-maven-plugin.test/it/it-report-aggregate/child1/target/jacoco.exec
[INFO] Loading execution data file /home/martin/git/jacoco/jacoco-maven-plugin.test/it/it-report-aggregate/child1-test/target/jacoco.exec
[INFO] Loading execution data file /home/martin/git/jacoco/jacoco-maven-plugin.test/it/it-report-aggregate/child2/target/jacoco.exec
[INFO] Analyzed bundle 'child1' with 2 classes
[INFO] Analyzed bundle 'child2' with 1 classes
So, yes, goal is add the source files from "report" module.

Best Regards,
MOmega

Evgeny Mandrikov

unread,
Jun 30, 2016, 3:01:25 PM6/30/16
to JaCoCo and EclEmma Users, mav...@ext.csas.cz, mome...@gmail.com
I'm closing this thread to avoid useless duplication of it with comments in PR https://github.com/jacoco/jacoco/pull/430 

Best regards,
Evgeny
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages