Open ArcherEmiya05 opened 4 months ago
Hmm, I don't know.Since there's nothing in the logs hinting to Hilt or Dagger, I don't think there is anything actionable we can do with this, unfortunately.
Does Hilt always execute app module during instrumented test?
Do you have a Gradle scan? That should tell you why the task is running
Does Hilt always execute app module during instrumented test?
Do you have a Gradle scan? That should tell you why the task is running
May I know how to do this part? I am not sure if this is what you are looking for but I saw some hilt task on app module that I just didn't include in the first log.
I just migrated a project from Dagger to Hilt, everything works fine except when executing
./gradlew connectedAndroidTest
with AVD running in a CI CD pipeline. There is this bug we are experiencing when running such tests in pipeline that we previously solved by modularizing the project so the app module no longer contains any instrumented test.However after migrating to Hilt and using it to inject dependency in each module's instrumented test, the bug started to show again. The instrumented test on each modules are success but for some reason the task
:app:connectedDebugAndroidTest
is also getting executed again despite not having aandroidTest
.I also tried to specify which module runs instrumented test yet it keeps running the task for app module. This does not happen when using Dagger.
./gradlew module1:connectedAndroidTest module2:connectedAndroidTest