This is expected, and will occur for any test execution. The Android
Eclipse plugin will issue two commands to the device when running
tests - the first is a command to just list all the tests that will be
executed. This is needed to populate the JUnit pane. The second
command is the one that actually runs the tests.

On Tue, Jun 9, 2009 at 11:02 AM, Steve Hugg<[email protected]> wrote:
>
> 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