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>
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