Hi,

code coverage analysis with JaCoCo is a two step process:

1) Collect execution data at runtime (typically with the JaCoCo agent)
2) Create a detailed report (with the analyzer API or any of our tool integrations like Ant, Maven, CLI, ...)

Regards,
-marc

On 2018-05-11 23:46, [email protected] wrote:
Hi,

I'm using Jacoco as a Java agent to instrument classes to obtain
coverage information. Currently, I can get the probe hit count of a
given class. I followed the example from
https://www.eclemma.org/jacoco/trunk/doc/examples/java/ExecDump.java
to retrieve the number of probes hit for each class as recorded in a
specified .exec file.

However, how can I get a finer granularity coverage report,
specifically one that includes method information? Is it possible to
associate the probe array with a set of methods?

I am able to get this information if I don't use Jacoco as a Java
agent and make calls directly to the Jacoco.core.analysis package.
However, if I need to use Jacoco as a Java agent, how could I get this
same information?

Thank you!

--
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/1030f33d33366fdbac47c1d343b9146e%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to