After Hello, World and Hello Testing , I created an Android application created using Eclipse, as well as the corresponding Android Test Project.
Tests run fine ... once. After that, to run the tests again, I need to close the emulator.
If I do not close the emulator, the Eclipse console will get stuck on "Installing the android.test.InstrumentationTestRunner toolkit on the 5554 device emulator" ... After that, nothing happens.
Here is the output from my program in the second run:
[HelloTest] ------------------------------
[HelloTest] Android Launch!
[HelloTest] adb is running normally.
[HelloTest] Performing android.test.InstrumentationTestRunner JUnit launch
[HelloTest] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'FakePhone'
[HelloTest] Uploading HelloTest.apk onto device 'emulator-5554'
[HelloTest] Installing HelloTest.apk...
[HelloTest] Success!
[HelloTest] Project dependency found, installing: Hello
[Hello] Application already deployed. No need to reinstall.
[HelloTest] Launching instrumentation android.test.InstrumentationTestRunner on device emulator-5554
As you can see, it stops at "Launch Toolkit" ... I also run "adb logcat" and did not see anything interesting.
, . , , ( "", , ), , , , , .
. , - !