Hi!
I have updated my project and my test project with the sdk tools r14,
and I can no longer seem to get the tests running.
First of all, the documentation here:
http://developer.android.com/guide/developing/testing/testing_otheride.html#RunTestsCommand
has not been updated and the |run-tests target no longer exist.
I understand you are now supposed to use this command instead:
ant debug installt test
Unfortunately this fails with this message:
build.xml:816: Cannot run two different modes at the same time. If you
are running more than one debug/release/instrument type targets, call
them from different Ant calls.
I then tried to first issue ant debug (seems to work ok, the package is
installed in the emulator), and then ant installt test. This second
command fails with this message:
test:
[echo] Running tests ...
[exec] INSTRUMENTATION_STATUS: id=ActivityManagerService
[exec] INSTRUMENTATION_STATUS: Error=Unable to find
instrumentation info for:
ComponentInfo{com.example.android/android.test.InstrumentationTestRunner}
[exec]
[exec] INSTRUMENTATION_STATUS_CODE: -1
[exec] android.util.AndroidException: INSTRUMENTATION_FAILED:
com.milestonelab.plizy.android/android.test.InstrumentationTestRunner
[exec] at com.android.commands.am.Am.runInstrument(Am.java:532)
[exec] at com.android.commands.am.Am.run(Am.java:111)
[exec] at com.android.commands.am.Am.main(Am.java:78)
[exec] at
com.android.internal.os.RuntimeInit.finishInit(Native Method)
[exec] at
com.android.internal.os.RuntimeInit.main(RuntimeInit.java:238)
[exec] at dalvik.system.NativeStart.main(Native Method)
BUILD SUCCESSFUL
Ant thinks the build is successful when this fails which I think is a
known issue.
But any idea on how to fix this?
My test project used to work fine with ant ||run-tests before the update.
Thanks for your help!
||
|
--
BoD
--
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