Hi Keshav,

Any resolution we found it for Android Car Emulator Code coverage issue? 

Is it resolved now?

On Monday, March 1, 2021 at 9:52:36 AM UTC+5:30 Keshav Verma wrote:

> Thanks for your reply, but the jacoco lib that I am using, is working fine 
> with Generic Android Mobile emulator, only issue is with the Automotive Car 
> Emulator.
> It looks like, lib is not supporting Car emulator variant.
>
> Please suggest or any pointer would be helpful.
> On Saturday, February 27, 2021 at 5:24:09 PM UTC+5:30 Evgeny Mandrikov 
> wrote:
>
>> On Saturday, February 27, 2021 at 9:50:45 AM UTC+1 Keshav Verma wrote:
>>
>>> Hi 
>>>
>>> Objective is to get 100% code coverage for instrumentation test in 
>>> Android Automotive Car Emulator API 29.
>>>
>>> I am trying to run coverage report on android test(instrumentation test) 
>>> using jacoco version 0.8.0 till 0.8.6 on Android Automotive Car Emulator 
>>> API 29, test cases are executing successfully but code coverage is 0% for 
>>> instrumentation test(espresso test). Generated coverage.ec file is 
>>> empty in the car emulator. 
>>>
>>> I also noticed that code coverage is 100% for unit test. I tried the 
>>> same configuration and testing in Android generic mobile emulator(Pixel 2 
>>> API 29) but in this case both unit and instrumentation test shows 100% code 
>>> coverage. 
>>>
>>> Below are logs for both Android emulator. I have already added 
>>> READ/WRITE permissions also.
>>>
>>> *Android Automotive Car Emulator API 29 - Failed*
>>>
>>> 05:47:47 V/InstrumentationResultParser: Error: Failed to generate 
>>> Emma/JaCoCo coverage.13:32
>>> 05:47:47 V/InstrumentationResultParser: 
>>> 05:47:47 V/InstrumentationResultParser: Time: 2.987 
>>> 05:47:47 V/InstrumentationResultParser: 
>>> 05:47:47 V/InstrumentationResultParser: OK (2 tests) 
>>> 05:47:47 V/InstrumentationResultParser: 
>>> 05:47:47 V/InstrumentationResultParser: 
>>> 05:47:47 V/InstrumentationResultParser: Error: Failed to generate 
>>> Emma/JaCoCo coverage. 
>>> 05:47:47 V/InstrumentationResultParser: INSTRUMENTATION_CODE: -1 
>>>
>>
>> InstrumentationResultParser is not developed by JaCoCo team,
>> but by developers of Android SDK - see 
>> https://android.googlesource.com/platform/tools/base/+/master/ddmlib/src/main/java/com/android/ddmlib/testrunner/InstrumentationResultParser.java
>> So please talk to them - 
>> https://source.android.com/setup/contribute/report-bugs 
>>
>>
>>> *Android generic mobile emulator(Pixel 2 API 29) - Success*04:23:59 
>>> V/InstrumentationResultParser: Time: 3.089 
>>> 04:23:59 V/InstrumentationResultParser: 
>>> 04:23:59 V/InstrumentationResultParser: OK (2 tests) 
>>> 04:23:59 V/InstrumentationResultParser:
>>> 04:23:59 V/InstrumentationResultParser:
>>> 04:23:59 V/InstrumentationResultParser: Generated code coverage data to 
>>> data/data/com.sampleapp.jacocoandroidtest/coverage.ec
>>> 04:23:59 V/InstrumentationResultParser: INSTRUMENTATION_CODE: -1 
>>>
>>> I wanted to get 100% code coverage in *Android Automotive Car Emulator 
>>> API 29* only.
>>>
>>> Thanks for your support.
>>> Keshav
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/cbcbdc0f-06e2-46fe-be62-2baef4dcecb7n%40googlegroups.com.

Reply via email to