We are developing a library which will be distributed under frameworks
directory.
We wrote some unit tests for it as we did to other apks we developed
but got no luck to run tests successfully.
We got "Unable to find instrumentation target package:***" message
everytime.

After studying core tests, I got the solution that we have change
tests package declaration in AndroidManifest.xml.
When we test some apk which package is "com.a", then we name its test
package as "com.a.tests".
However, we have to name test package as the same as the package of
library without "test" suffix as core tests's AndroidManifest.xml.

I wonder whether my conclusion is right and why.

BTW, up to now, the coverage reports for this framework library is
always says 0%. We also confirm core tests whose coverage report says
0%, too. Hope someone tell me your experience!

Thanks in advance.

James

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to