Running android unit tests from the command line?
问题 I'm trying to run unit tests on the android platform in accordance with tutorial. Say, for example, I want to run tests for Email application. I open /apps/Email/tests/AndroidManifest.xml file, look for the <manifest> element, and look at the package attribute, which is com.android.email.tests , and in the <instrumentation> element I look at the android:name attribute, which is android.test.InstrumentationTestRunner . Now I open the console, and run $ . build/envsetup.sh $ lunch 1 $ adb shell