dagger test component not being generated when the project contains multiple android modules

kotlin("kapt")

to plugins section in :data module build.gradle.kts.

Gradle then proceeds with errors about missing @Provides for your WebServicesImp. Also you should fix the missing Context provider, in my example I just removed the Context use. This should be added to TestNetworkModule:

@Singleton
@Provides
fun provideRetrofit(okHttpClient: OkHttpClient): Retrofit {
    return Retrofit.Builder()
        .baseUrl("http://www.holidaywebservice.com")
        .client(okHttpClient)
        .addConverterFactory(SimpleXmlConverterFactory.createNonStrict(Persister(AnnotationStrategy())))
        .build()
}
@Reusable
@Provides
fun provideWebServices(retrofit: Retrofit): WebServices {
    return retrofit.create(WebServices::class.java)
}

@Reusable
@Provides
fun provideWebServicesImp(webServices : WebServices): WebServicesImp {
    return WebServicesImp(webServices)
}

After that DaggerTestWestforceCeditUnionComponent was successfully generated.