Running android unit tests from the command line?
You may need to setup a test project with the android create test-project
command first. Check this page on the Android Dev site: Testing In Other IDE's for more info. I've used this method to enable command line testing with ant.
Please run python development/testrunner/runtest.py email
and then you will see it works :).
Basically you do not have com.android.email.tests package installed.
You can see what is available for instrumentation
pm list instrumentation
And you should see
instrumentation:com.android.email.tests/android.test.InstrumentationTestRunner (target=com.android.email)
And when doing
pm list packages
package:com.android.email
package:com.android.email.tests