Running Android Unit Test

Create a unit test based on AndroidTestCase then modify AndroidManifest to add:

<application android:icon="@drawable/icon" android:label="@string/app_name">
<uses-library android:name="android.test.runner" />
</application>
<instrumentation android:targetPackage="com.mypackagename.test"
android:name="android.test.InstrumentationTestRunner" />


Then select the class and run as "Android JUnit test"

Popular posts from this blog

Soving AccessDenied on Google Cloud Storage domain mapping

Fixing "DerInputStream.getLength(): lengthTag=109, too big" in Android Studio

Simple Samba setup on Lubuntu