Robotium tests do not work on Jenkins, but local

I am trying to integrate my Robotium tests on our Jenkins server. I implemented an Android testing project based on our Project app. Everything works like a charm when I run tests on my local machine on Windows from Eclipse, as well as calling from the shell on a call

'adb shell am instrument -w <our-package>/android.test.InstrumentationTestRunner'

So far, so good, but after I created the Job assembly in Jenkins, let the projects build on maven clean install sign, etc. none of my tests will continue. I also tried to invoke 'adb shell am instrument -w <our-package>/android.test.InstrumentationTestRunner'as a shell command after the build step, but also the result. In the assembly there were only 2 tests shown below:

[workspace] $ /bin/sh -xe /tmp/hudson3571502822112946903.sh
+ /home/jenkins/tools/android-sdk-linux/platform-tools/adb shell pm list instrumentation
instrumentation:com.android.emulator.connectivity.test/android.test.InstrumentationTestRunner (target=com.android.emulator.connectivity.test)
instrumentation:com.android.emulator.gps.test/android.test.InstrumentationTestRunner (target=com.android.emulator.gps.test)
instrumentation:com.zeppelin.zemos.test.addispo/android.test.InstrumentationTestRunner (target=com.zeppelin.zemos.addispo)
+ /home/jenkins/tools/android-sdk-linux/platform-tools/adb shell am instrument -w com.zeppelin.zemos.test.addispo/android.test.InstrumentationTestRunner

android.test.AndroidTestCase:.
android.test.LoaderTestCase:.
Test results for InstrumentationTestRunner=..
Time: 0.031

OK (2 tests)

2 AndroidTestCase LoaderTestCase , , ( 11) Jenkins.

, . ant? 1.8 local 1.6 Jenkins. , .....

+5
1

/, "adb uninstall your_package" .

+1

All Articles