Using APIs

50 views
Skip to first unread message

pal pandi

unread,
Jun 3, 2016, 2:21:54 AM6/3/16
to JaCoCo and EclEmma Users
Hi,

How can I use jacoco APIs to instrument  a particular path just like instrumenting a path in emma?

In the API documentation, I am not able find anything like that?


Thanks.

pal pandi

unread,
Jun 3, 2016, 2:30:44 AM6/3/16
to JaCoCo and EclEmma Users
Also I need to know how to create sessions in both emma and jacoco.
Please give some examples

Marc R. Hoffmann

unread,
Jun 3, 2016, 6:14:32 PM6/3/16
to jac...@googlegroups.com
Hi,

first of all: Normally with JaCoCo there is no need to instrument classes. The JaCoCo agent performs this on the fly.

If you have a good reason to instrument classes offline, the Ant task is as good example how to use the APIs:

https://github.com/jacoco/jacoco/blob/master/org.jacoco.ant/src/org/jacoco/ant/InstrumentTask.java

Regards,
-marc
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/1aa54a2d-bf52-42e2-83ef-6c9a581413ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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