JaCoCo in PAX-EXAM Integration test can't find any classes to analyze.

40 views
Skip to first unread message

dutch...@gmail.com

unread,
Mar 29, 2019, 7:05:05 PM3/29/19
to JaCoCo and EclEmma Users
Hi,

I have an integration test bundle that itself doesn't contain any application code, just tests. The integration tests validate the proper functioning of several other bundles.

Everything runs fine inside a 4.13.0 pax-exam container. I just can't figure out how to get JaCoCo configured. I (believe I) understand what the problem is, Jacoco only analyzes the classes inside the current project/bundle. But how can I instruct it to include other classes on the class path? I tried many combinations of include ... and inclBootStrapClasses and inclNoLocationClasses, but whatever I try, the result is 0 classes.

I am sure I am missing something, but I have run out of ideas.

Any suggestions are greatly appreciated.

X-posted in PAX-EXAM group.


Cheers,

Erwin


[INFO] --- jacoco-maven-plugin:0.8.3:report-integration (report-integration) @ com.my.itest ---
[INFO] Loading execution data file /Users/erwin/work/PROJECT/branches/5.2/src/server/com.my.itest/target/jacoco-it.exec
[INFO] Analyzed bundle 'PROJECT :: Automation Itest Bundle' with 0 classes

<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-container-native</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-junit4</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-cm</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-link-mvn</artifactId>
<scope>test</scope>
</dependency>

Evgeny Mandrikov

unread,
Mar 30, 2019, 3:10:25 PM3/30/19
to JaCoCo and EclEmma Users

On Saturday, March 30, 2019 at 12:05:05 AM UTC+1, dutch...@gmail.com wrote:

 only analyzes the classes inside the current project/bundle.

 

But how can I instruct it to include other classes on the class path?

    [INFO] --- jacoco-maven-plugin:0.8.3:report-integration (report-integration) @ com.my.itest ---
    [INFO] Loading execution data file /Users/erwin/work/PROJECT/branches/5.2/src/server/com.my.itest/target/jacoco-it.exec
    [INFO] Analyzed bundle 'PROJECT :: Automation Itest Bundle' with 0 classes



Let me quote answer that is given in a thread just next to yours ( https://groups.google.com/d/msg/jacoco/-wdEo3JOHmc/K-saXPD_AwAJ ):

Please have a look at report-aggregate goal to create a report over multiple modules:


dutch...@gmail.com

unread,
Mar 31, 2019, 2:47:37 PM3/31/19
to JaCoCo and EclEmma Users
Thanks for the help Evgeny,

I had tried the report-aggregate w/o Luck. I will take a look at the example though, I missed that before.


Regards,

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