hi,
I want to build a test program to test my content provider. The  steps
as follows:

1.Create project and modify Matifest file

<instrumentation android:name="android.test.InstrumentationTestRunner"
                     android:targetPackage="com.android.abc.providers"
                     android:label="ABC Provider tests"/>

2. New a ProviderTestCase2 class for testing

public class ABCProviderTest extends ProviderTestCase2<ABCProvider> {

    public TaskProviderTest(Class< ABCProvider > providerClass,
            String providerAuthority) {
        super(ABCProvider.class, "com.android.abc.providers");
    }

3. And I want to checkout this project can is runnable or not, but log
shows

 Test run failed: Unable to find instrumentation target package:
com.android.abc.providers

I'm sure all name are correct, and  log only shows

06-09 05:54:53.670: DEBUG/AndroidRuntime(2518): >>>>>>>>>>>>>>
AndroidRuntime START <<<<<<<<<<<<<<
06-09 05:54:53.670: DEBUG/AndroidRuntime(2518): CheckJNI is ON
06-09 05:54:53.890: DEBUG/AndroidRuntime(2518): --- registering native
functions ---
06-09 05:54:53.899: INFO/jdwp(2518): received file descriptor 20 from
ADB
06-09 05:54:53.910: INFO/jdwp(2518): Ignoring second debugger --
accepting and dropping
06-09 05:54:54.630: WARN/ActivityManager(588): Unable to find
instrumentation target package: com.android.abc.providers
06-09 05:54:54.699: DEBUG/AndroidRuntime(2518): Shutting down VM

Is there any problem?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to