Using Jacoco with Pax-Exam

Course Queries Competitions/Entrance Exams 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Competitions/Entrance Exams related to Course Queries. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

I'm currently working on an application built on the OSGi model. All the testing process of my application is made by using Pax-Exam which create a new JVM by using Karaf.

I tried to use Jacoco for my integration tests code coverage but it doesn't seem to work. When I'm using it (with the maven plugin), the jacoco.exec file created is empty.

As Pax-Exam is creating a new JVM to do the tests through Karaf, I set a Pax-Exam option with the javaagent in order to use the exact same arg line for the new JVM which will do the tests. Unfortunately, it doesn't work.

I already tried to use Jacoco without all the Pax-Exam/Karaf/OSGi part and it works well, but I don't know how to make it work with my OSGi bundles.

I hope that someone could help with that!

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.