Hi Jakub, 

        * 

We can get this data from actual stack trace when code was visited in a
coverage counters spots (places analyzed by JaCoCo). An extension of the
ClassProbeAdapter and changes in org.jacoco.core.internal are needed. 

I don't think this is the correct place: ClassProbeAdapter is used at
the time of instrumentation or analysis. It is not invoked at execution
time (only indirectly when using on-the-fly-instrumentation and classes
are loaded the first time). 

Execution is recorded by bytecode probes inserted by the instrumentation
process, please see http://www.jacoco.org/jacoco/trunk/doc/flow.html 

Regards,
-marc 

On 2017-09-21 14:22, [email protected] wrote:

> Hello Marc, 
> Here is my description of the approach. 
> 
> * 
> 
> Add the option to choose a mode of JaCoCo run. This option could be handled 
> by a system property named e.g. org.jacoco.source.detection.enabled with 
> possible values true or false configured in the maven pom file. Default value 
> should be false and JaCoCo execution will be the same as before. 
> * 
> 
> Identify test calling source code. 
> 
> * 
> 
> We can get this data from actual stack trace when code was visited in a 
> coverage counters spots (places analyzed by JaCoCo). An extension of the 
> ClassProbeAdapter and changes in org.jacoco.core.internal are needed. 
> * 
> 
> Verify new functionality for all analytical methods. 
> 
> * 
> 
> Data storing 
> 
> * 
> 
> Implementation of storing extension in package org.jacoco.data.core. We need 
> to store data about from where was code called. Saving should be fast and 
> duplicities of calls should be ignored. 
> 
> * 
> 
> Display data 
> 
> * 
> 
> Extend actual report with data about source calling (changes in 
> org.jacoco.report package), 
> * 
> 
> Data merge - in the jacoco report we can see coverage from package to code. 
> For a package it would be nice to display all tests. So I would like to show 
> what tests cover each particular package. 
> 
> Best regards Jakub
> 
> -- 
> 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/77d84d54-62ef-45df-94d1-ffff057f033c%40googlegroups.com
>  [1].
> For more options, visit https://groups.google.com/d/optout.

  

Links:
------
[1]
https://groups.google.com/d/msgid/jacoco/77d84d54-62ef-45df-94d1-ffff057f033c%40googlegroups.com?utm_medium=email&utm_source=footer

-- 
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/1d002b50b34d8acfa767f8e3c14d4013%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to