Ahmed Ibrahim
09/25/2020, 11:54 AMHiltAndroidTest
and they have UninstallModules
with the same set of modules to uninstall. If I add or remove an extra module to uninstall, I have to cascade the changes to the rest.
Is there a way to avoid repeating myself with Hilt or do I need to file a feature request for that?
What I tried and didn't work (inspired by Spring Boot TestComponent annotation)
@UninstallModules(SearchModule::class, SearchResultsModule::class, DestinationsSearchModule::class)
@HiltAndroidTest
internal class MonthsFragmentTest
Tried writing an annotation that combines them
@UninstallModules(
SearchModule::class,
SearchResultsModule::class,
DestinationsSearchModule::class
)
@kotlin.annotation.Target
annotation class UninstallSearchProductionModules
and tried replacing them
@UninstallSearchProductionModules
@HiltAndroidTest
internal class MonthsFragmentTest
allan.conda
09/26/2020, 2:02 AMAhmed Ibrahim
09/26/2020, 8:31 AM