Hi Arihant,

please be aware that neither the Grade nor the Android implementation is 
developed by the JaCoCo team. You might find some help at these projects. They 
maintain their JaCoCo integrations themself. AFAIK Android SDK uses offline 
instrumentation as their runtime does not support Java agents.

The only general advice I can give is to check the “Sessions” page of the 
JaCoCo project for the classes with code coverage missing:

Case 1: The classes are not listed —> They have not been executed or were not 
seen bei the JaCoCo runtime
Case 2: The classes are listed —> A different version of the class was used at 
runtime than at report generation time

Regards,
-marc


> On 5. Mar 2019, at 06:01, arihjain via JaCoCo and EclEmma Users 
> <[email protected]> wrote:
> 
> Any update on this item? Let me reiterate the problem:
> 
> After execution of instrumentation UI test on android, the execution detail 
> gets generated only for one central module and when I generate the report I 
> see 0% code coverage  for the classes for which UI test ran. What should I do 
> to get correct code coverage?
> 
> On Friday, March 1, 2019 at 10:41:06 PM UTC+5:30, Arihant Jain wrote:
> Hi Team, I am an adobe engg. I was trying to integrate jacoco into gradle 
> android project and have some queries for which I am hoping will receive an 
> answer or direction to help me resolve them
> 
> Code Structure of our application is as following:
> 
> At present, our internal android application is multi module. We have written 
> UI test for the complete application but are located in one centre module 
> rather in their specific modules and all Unit test are located in their 
> respective modules. 
> 
> Problem: 
> However after execution of connectedDebugAndroidTestCoverageReport, execution 
> data (.ec file) only generates for our centre module where the UI tests are 
> located and does not generate for other modules.
> I believe this could be achieved with using offline instrumentation but after 
> referring to many documents I am unable to find how to use 
> jacocoAgent-offline instrumentation with gradle. Need a hand there here.
> Regards
> Arihant jain
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/0aa44e88-f64b-4aaf-8d16-40c3c266889f%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/0aa44e88-f64b-4aaf-8d16-40c3c266889f%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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/4D4A0363-E887-4FB8-8EA0-AEDE5A369635%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to