Skip to content
Shobhit Agarwal edited this page May 10, 2023 · 2 revisions

Notes related to usage of Hilt in the application

Code coverage of auto-generated classes using JaCoCo

Classes annotated with @AndroidEntryPoint generate a java class (e.g. Hilt_*) in the same package. JaCoCo plugin isn't aware of this byte transformation and therefore the coverage of the annotated class is reported as 0. To fix that, we need to extend the auto-generated class as mentioned in the above workaround until the issue is resolved by hilt/jacoco.

Tracking bug

Clone this wiki locally