Robolectric claim to support overriding application manifest:
@Config(manifest = "some/build/path/AndroidManifest.xml")
public class SandwichTest {
@Config(manifest = "other/build/path/AndroidManifest.xml")
public void getSandwich_shouldReturnHamSandwich() {
}
}
但似乎在Gradle上this feature is broken。
如何使用Robolectric 3.0在Gradle上构建时覆盖清单?