How to generate final (html) report form jacoco ?

7,962 views
Skip to first unread message

shreep...@gmail.com

unread,
Apr 3, 2013, 10:32:05 PM4/3/13
to jac...@googlegroups.com
Hello,

We have eclipse based application forwhich we have do code coverage tests

First step I upated the configuration file of our product <my_application>.ini with -javaagent:<Jacoco folder path>/lib/jacocoagent.jar
And then started our application and did few clicks and closed it
It generated jacoco.exec file

Now please tell me how generate a readable (html) report out of it? I saw that it can be done using ANT. But I am new to ANT, can you please help & tell the exact steps to generate html report ?

Thanks
Shreepathi

Marc R. Hoffmann

unread,
Apr 4, 2013, 3:02:32 PM4/4/13
to jac...@googlegroups.com
Hi Shreepathi,

please see documentation of the JaCoCo Ant task 'report':

http://www.eclemma.org/jacoco/trunk/doc/ant.html#report

Also documentation includes an example build script:

http://www.eclemma.org/jacoco/trunk/doc/examples/build/build.xml

In your scenario you probably only need the target 'report'.

Best regards,
-marc

shreep...@gmail.com

unread,
Apr 5, 2013, 12:59:09 AM4/5/13
to jac...@googlegroups.com
Hello Marc,

Thanks for the details.

Is there is any other way to generate html report? Like we used to have in emma ?
Something like java -cp "C:\emma2.0.5312\lib\emma.jar" emma report -r html -Dreport.html.out.file="….. ?

Thanks
Shreepathi
Message has been deleted

Marc R. Hoffmann

unread,
Nov 29, 2013, 12:21:33 PM11/29/13
to jac...@googlegroups.com
Hi,

currently there are the following options to create an report:

1) Ant Task
2) Maven Goal
3) Eclipse Plug-in EclEmma
4) Third party plug-in to other IDEs like Netbeans or IDEA
5) Third party products like SonarQube
6) You can create your own tools with the APIs.

Cheers,
-marc

On 27.11.13 12:00, ens...@google.com wrote:
> Anyone. I am in the same situation. We not using ant or maven here. Isn't there a way to directly generate the report by means of a command?
>

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