Android tests BuildConfig field
问题 Suppose my build.gradle file defines different values for the same variable that is defined in BuildConfig : android { def INTEGER= "integer" def VARIABLE = "variable" buildTypes { release { buildConfigField BOOLEAN, VARIABLE, "1" } debug { buildConfigField BOOLEAN, VARIABLE, "2" } } } I would like to define BuildConfig value for this variable for androidTest (the one that is created in app/build/generated/source/buildConfig/androidTest/debug/{app_id}/test/BuildConfig.java ) Now, the value is