How to Parse the external jars to show as report

44 views
Skip to first unread message

smileso...@gmail.com

unread,
Apr 5, 2016, 8:18:48 AM4/5/16
to JaCoCo and EclEmma Users
Hi,
I have enabled coverage when the java starts and collected the jar file.
Then I ran the tests so that the coverage is taken.

1. I copied the external jar to the plugin directory of eclipse
2. I copied the external jar to the Jacoco installed path

But the coverage data is not collected for some reason. Is there a way we can invoke the reporting engine from command line without maven project being run?

Regards
Pradeep

Marc R. Hoffmann

unread,
Apr 5, 2016, 4:43:59 PM4/5/16
to jac...@googlegroups.com
Hi Pradeep,

What do you want to achieve? What is the "external jar"?

Regards,
-marc

smileso...@gmail.com

unread,
Apr 6, 2016, 11:21:48 AM4/6/16
to JaCoCo and EclEmma Users
I have built a jar collected separately in the test machine after running my tests with coverage data. I have installed eclipse with EclEmma plugin. I wanted to view the coverage results through Eclipse IDE. So wanted to check the coverage from the jar quickly before I create pom.xml entry and put the dependencies using the maven project.

Marc R. Hoffmann

unread,
Apr 8, 2016, 10:42:29 AM4/8/16
to jac...@googlegroups.com
Hi Pradeep,

ok, then do the following steps:

1) Create a Java Project in Eclipse
2) Copy the JAR into the Java project
3) Add the JAR to the Java project's classpath
4) Open the import wizard ("Coverage Session" ) select the exec file
5) On the second wizard page select the JAR file imported above

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