Hey guys, quick question. My Dynamic Modules tests...
# gradle
n
Hey guys, quick question. My Dynamic Modules tests have unresolved reference for Junit. The Dynamic Module build gradle dependencies are just these
Copy code
dependencies {
    implementation(project(":core"))
    implementation(project(":app"))
}
While my app has
Copy code
dependencies {
///...
    implementation(project(":core"))
    
    testImplementation(TestLibraryDependency.JUNIT) //neither does this
    addTestDependencies() // this doesn't work
}
But rather I have to explicitly add
testImplementation(TestLibraryDependency.JUNIT)
to my Dynamic Modules build.gradle What is up with that?
Copy code
un DependencyHandler.addTestDependencies() {
 //   testImplementation(project(ModuleDependency.LIBRARY_TEST_UTILS))

    testImplementation(TestLibraryDependency.JUNIT)
    androidTestImplementation(TestLibraryDependency.TEST_RUNNER)
    androidTestImplementation(TestLibraryDependency.ESPRESSO_CORE)
    testImplementation(TestLibraryDependency.MOCKITO_INLINE)
    androidTestImplementation(TestLibraryDependency.MOCKITO_ANDROID)
    testImplementation(TestLibraryDependency.MOCKITO_KOTLIN)
    testImplementation(TestLibraryDependency.COROUTINES_TEST)
    testImplementation(TestLibraryDependency.ANDROID_X_CORE_TESTING)

    kaptTest(LibraryDependency.DAGGER_COMPILE)
    kaptAndroidTest(LibraryDependency.DAGGER_COMPILE)
    kaptAndroidTest(LibraryDependency.DAGGER_ANDROID_PROCESSOR)
}
This is the add test dependencies, but doesn't matter really as adding
Junit
manually still doesnt work. To my knowledge the Dynamic Module should inherit its dependencies from the app module