Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A JUnit @rule which launches an activity when your test starts. Stop extending gross ActivityInstrumentationBarfCase2!
Copy link

IgorGanapolsky commented Jul 24, 2015

Android testing support library already includes their ActivityTestRule. Why do we need this ActivityRule?

Copy link

JakeWharton commented Aug 4, 2015

@IgorGanapolsky Mine came first.

Copy link

stefanlam88 commented Aug 25, 2015

hi all, need your expertise here. I m not sure why my JUnit4.class is in red color. I already sync gradle

/* JUnit4 & Espresso */
androidTestCompile '🏃0.3'
// Set this dependency to use JUnit 4 rules
androidTestCompile ''

but not working?any 1 know why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment