I've got unit tests which are subclasses of AndroidTestCase, I thought
they were just taking awhile to run, but for some reason when I run
them via Eclipse, they actually run twice. I can verify this in
LogCat .. after the Console outputs "Launching instrumentation
android.test.InstrumentationTestRunner on device..." the first run
starts, which is only visible via LogCat. Then the JUnit pane comes to
life and starts tracking the second run.

Any ideas? My AndroidManifest.xml looks like this:

<manifest xmlns:android="http://schemas.android.com/apk/res/android";
        package="com.foobar.test"
        android:versionCode="1"
        android:versionName="1.0.0">
        <uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION" />
        <uses-permission
android:name="android.permission.ACCESS_NETWORK_STATE" />
        <uses-permission android:name="android.permission.INTERNET" />

        <application android:label="@string/app_name">
                <uses-library android:name="android.test.runner" />

                <service android:name="com.foobar.EventService" />
        </application>

            <instrumentation
            android:name="android.test.InstrumentationTestRunner"
            android:targetPackage="com.foobar.test"
            android:label="Tests for my app" />

</manifest>


Thanks,
Steve

--~--~---------~--~----~------------~-------~--~----~
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