How to Achieve 100% Jacoco Code Coverage Report Coverage for my Espresso Testcase which I have written for my Application in Android Automotive Emulator API 32

Hi,

My Objective is to get 100% Code Coverage for Instrumented test for my application in Android Automotive Emulator.

Here I was trying with Android Automotive Emulator API 32 , an Android 12L Automotive Emulator.

My Gradle version is 8.0 , Jacoco version is 0.8.10
also I am using the dependency ‘org.jacoco:jacoco-core:0.8.10’ in my gradle.app

In my case I was able to achieve 100% Coverage for my Unit testcase for my application in Android Automotive Emulator using Jacoco 0.8.10 Gradle plugin

But Incase of Instrumented Test , I was able to achieve 0% Coverage. Its not even covering any part of my code.
This I have done for the same application in same Android Automotive Emulator API 32.

So I need to achieve 100% coverage incase of Instrumented Test for my Application in Android Automotive Emulator API 32.

NOTE :mega:: I was able to achieve 100% coverage for Instrumented Test for my Application in My Pixel API 32
Mobile emulator but not able to get the same in Android Automotive Emulator API 32

Please help me with this issue.

Regards,
Yogesh Pethuram

I guess you would have more luck if you ask in some Android community or any community more related to the Android Automotive Emulator.
Your problem does not majorly sound Gradle releated, besides that you use Gradle as build tool.