views:

44

answers:

1

So, I was finally able to build and debug the android platform (the process can be seen here). Now, the question is: where are the unit tests, how do I launch them and where do I see results?

And also, is there any guide to android platform architecture?

A: 

I guess there is no way to run every unit test on Android src.

I don't know about the C code, but you can see that inside some git repos holding Android apps like Contacts they have a tests folder which is an android test project. You can check how to run them here.

Macarse
I'm trying to run unit tests for those apps using (for example) `adb shell am instrument -w com.android.email.tests/android.test.InstrumentationTestRunner`, but it tells me, that `INSTRUMENTATION_STATUS: id=ActivityManagerServiceINSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{com.android.email.tests/android.test.InstrumentationTestRunner}INSTRUMENTATION_STATUS_CODE: -1android.util.AndroidException: INSTRUMENTATION_FAILED: com.android.email.tests/android.test.InstrumentationTestRunner`What is the problem here?
folone