Jacoco report shows 0 due to firebase performance library
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?
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
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?
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!
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?