[android-developers] Problem 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 am instrument -w com.android.email.tests/
android.test.InstrumentationTestRunner
But that fails:
INSTRUMENTATION_STATUS: id=ActivityManagerService
android.util.AndroidException: INSTRUMENTATION_FAILED:
com.android.email.tests/android.test.InstrumentationTestRunner
INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for:
ComponentInfo{com.android.email.tests/
android.test.InstrumentationTestRunner}
So.. What am I doing wrong?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home