Can I get an exactly detailed execution data file on line coverage with EclEmma?

23 views
Skip to first unread message

hanjia...@gmail.com

unread,
Apr 23, 2016, 2:54:11 AM4/23/16
to JaCoCo and EclEmma Users
Something like a string showing each line executed or not.

e.g.011110011 represents, the first line of statement is not executed, while from the second to the fifth line are executed.

hanjia...@gmail.com

unread,
Apr 23, 2016, 4:49:50 AM4/23/16
to JaCoCo and EclEmma Users, hanjia...@gmail.com
On Saturday, April 23, 2016 at 4:54:11 PM UTC+10, hanjia...@gmail.com wrote:
> Something like a string showing each line executed or not.
>
> e.g.011110011 represents, the first line of statement is not executed, while from the second to the fifth line are executed.

So typically, when we use eclemma, we can distinguish the code into red and green. I want to get a collection of the execution state of each statement.

For example, the first, and second statement are executed, while the third is not executed, I want to get a list or a string which is exactly 110.

Marc R. Hoffmann

unread,
Apr 23, 2016, 12:37:53 PM4/23/16
to jac...@googlegroups.com
Hi,

you can export XML-Reports to get the coverage status of every line:

http://eclemma.org/userdoc/importexport.html

See "line" tags in this example export:
http://eclemma.org/jacoco/trunk/coverage/jacoco.xml

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