Jacoco report-aggregate analyzing bundle

227 views
Skip to first unread message

Landmast0rz

unread,
Mar 9, 2021, 9:50:20 AM3/9/21
to JaCoCo and EclEmma Users
Hello Jacoco group! currently trying to implement Jacoco on multiple projects at my work place and I've been stuck on this isssue. I've downloaded an example of report-aggregate from the web and during it's report-aggregate stage it will: load execution data file xyz and then analyse bundle abc. My problem is that on my work project it will never starts the analyse bundle stage. Any idea what could cause it to skip that part? Many thanks!

Landmast0rz

unread,
Mar 9, 2021, 10:02:11 AM3/9/21
to JaCoCo and EclEmma Users
I should also mention the index.html file shows 0 coverage but the session page shows my exec files and (it seems like) all my classes so I'm really stumped

Landmast0rz

unread,
Mar 10, 2021, 1:23:09 PM3/10/21
to JaCoCo and EclEmma Users
The team I work with worked it out in the end. For those finding this message from a web search, we ended up solving our problem by removing a <scope>test</scope> on a module and putting false on maven-dependency-plugin <failOnWarning> param.

Wesley Wexell

unread,
Dec 23, 2021, 4:13:03 PM12/23/21
to JaCoCo and EclEmma Users
Just wanted to say thank you to Landmast0rz.  Nothing else online helped, but this solved our problem.   We didn't need the failOnWarning setting, but we did need to remove the <scope>test</scope>
Specifically, the integration test module had the app module as a test dependency.  Once I removed that scope the aggregation started working.   Still really confused about WHY that worked, but it worked.

Our project structure
app-parent
    |- app
    |- app-test
    |- app-deployer
Reply all
Reply to author
Forward
0 new messages