android - Gradle - including resources in tests -
android - Gradle - including resources in tests -
i have android gradle project , java gradle project dependency. sec 1 have separated unit test classes. contains resources placed in src/main/resources
. problem resources not beingness copied test build directory.
i've found topic: http://forums.gradle.org/gradle/topics/resources_from_src_main_resources_not_included_for_test , adding snippet 1 before lastly post causes resources added , tests working fine building android apk fails due duplicate classes. can sourcesets altered conditionally (only test) or maybe there improve way include resources in tests?
this mentioned snippet: sourcesets { main { output.resourcesdir = "build/classes/main" } }
android testing resources gradle
Comments
Post a Comment