According to this link I can create a test application which Robolectric will automatically start using in tests. I cannot get this to work.
I am using Dagger for depen
It's really simple in Robolectric 3.0, you add it directly to the @Config annotation.
@Config
@RunWith(RobolectricGradleTestRunner.class) @Config(constants = BuildConfig.class, sdk = 21,application = TestApplication.class) public class ActivityTest {