it seems that running an Android Test requires that a device or emulator is present. even this article: http://code.google.com/p/the-missing-android-xml-junit-test-runner/ requires it.
does anyone able to setup Android Tests in a CI server? kindly enlighten me on how to do the setup.
thanks!
Unfortunately I have not finished this task yet. But think I'm close to it. We use Jenkins as an integration server.
Android emulator has a nice option
-no-window
I managed to run emulator with this option on our Ubuntu server without any X-server.
So I'm going to implement the following steps:
And the last step - run tests using
adb shell am instrument
There is also a task of gathering JUnit reports. I have not touched it yet... But I'm sure it's possible :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With