firebase-android-sdk icon indicating copy to clipboard operation
firebase-android-sdk copied to clipboard

Jacoco report shows 0 due to firebase performance library

Open Prithuld opened this issue 1 year ago • 4 comments

We have encountered issues with Firebase Performance plugin conflicting with JaCoCo in Android projects, where coverage reports show 0% and logs indicate execution data mismatches? I temporarily commented out the Firebase Performance plugin to get correct coverage reports, but I’m looking for insights on how to make both tools work together, or if removing the performance plugin is the better solution. My current setup is AGP version 7.3.1 and JaCoCo version 0.8.8. firebasePerformance Plugin 1.4.2, AS Android Studio Koala | 2024.1.1 Patch 1 ,suggestions or solutions?

Prithuld avatar May 21 '25 13:05 Prithuld

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar May 21 '25 13:05 google-oss-bot

I found a related issue here: https://github.com/firebase/firebase-android-sdk/issues/5456, but it looks like there's still no fix available?

Prithuld avatar May 21 '25 13:05 Prithuld

Hi @Prithuld, thank you for reaching out and reporting the issue. Based on this https://github.com/firebase/firebase-android-sdk/issues/3948#issuecomment-1315677731,

this is fixed in AGP 8.0 where they removed the old transform API. The JaCoCo code coverage reports should be working again in that version.

I suggest updating to the latest AGP version as mentioned. I'll close this issue for now. Let me know if the persists or if there's any misunderstanding so we can re-open the issue. Thanks!

lehcar09 avatar May 22 '25 12:05 lehcar09

Thanks, @lehcar09

However, according to this ticket, the issue still hasn't been fully resolved. I do see some suggested workarounds, but how can I be 100% sure the problem is actually fixed after updating the AGP?

Prithuld avatar Jun 02 '25 16:06 Prithuld