I'd like to use a different resource directory for one of my Robolectric test cases. In this case i'd like to use the release-variant resources. The thing is I can't get this to work and I'm not seeing examples online of anyone using this config. It still uses the debug resources (Im running gradle testDebug where 'Debug' is one of my buildTypes in Gradle). The directory i'm setting is correct relative to the directory where the manifest is. I've tried referencing the ref files in "build/intermediates/.." too. The configuration seems to have no effect at all.
@RunWith(RobolectricTestRunner.class)
@Config(resourceDir = "../../variant_resources/release/res")
..
@Test
public void testHowThingsAreUsingReleaseResources() {
..
}
Im using Robolectric 2.4-SNAPSHOT Has anyone had had better luck using this Configuration? Is there an obvious mistake?