Following the "Hello, World" and "Hello, Testing" tutorials I created an android application created with Eclipse, along with a corresponding Android Test Project.
The tests run fine... once. After that, in order for me to run the tests again, I have to close the emulator.
If I don't close the emulator, the Eclipse console get stuck on "Installing instrumentation android.test.InstrumentationTestRunner on device emulator-5554"... Nothing happens after that.
Here's the output from my program on 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 "Launching Instrumentation"... I've also run "adb logcat" and not seen anything interesting.
I've been told to exit out of the application under test in the emulator in order to run the test again. Unfortunately the emulator doesn't have the app pulled up (it's in the normal "locked" position and when unlocked brings up the home screen) and even if I do pull it up then exit, it doesn't seem to let me run my tests again.
All the example videos and tutorials all stop at the first run of a test. I have yet to see anyone anywhere run a test a second time!