I've added a new build type called "debug_test" which has some BuildConfig
differences made for testing. While I can run all the local unit tests when I switch to this build type I fail to run instrumented tests, actually I even fail to build instrumented tests when set to "debug_test" (various symbols are not there).
It looks like for my new build type the :app:generateDebugAndroidTestSources
etc are not executed.
Debug runs:
Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar]
Whereas debug_test runs:
Executing tasks: [:app:generateDebug_testSources, :app:mockableAndroidJar]
I struggle a little bit to grasp what I have to do mainly because I do not understand which operations are implicitly done for debug which I need to do for debug_test as well. Do I need to explicitly define task dependency to generateDebugAndroidTestSources in my app level build.gradle file?
Hints appreciated.