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 > InstrumentationResultParser is not developed by JaCoCo team, but by developers of Android SDK - https://source.android.com/setup/contribute/report-bugs > 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 > > > > *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/a7be7d2d-cd91-4ffa-8816-0a18cb6286ddn%40googlegroups.com.