What Do I Need Enable Or Install To Get The Annotation @RunWith
I want to create a simple test with Robolectric for Android Apps using Android Studio. Ok, it is my build.gradle on root directory: buildscript { repositories { jcente
Solution 1:
It is already there:
testCompile 'junit:junit:4.12'
The only one thing to do in Android studio is to switch from instrumental tests to unit tests:
Solution 2:
It is in the Android test support library. Add the following to your dependencies:
androidTestCompile 'com.android.support.test:runner:0.3'
Post a Comment for "What Do I Need Enable Or Install To Get The Annotation @RunWith"