????2.???AndroidManifest.xml???
????????????
<instrumentation
android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.example" />
??????????
<instrumentation
android:name="com.example.test.instrumentation.InstrumentationTestRunner"
android:targetPackage="com.example" />
????3.???Run Configurations
??????????????>Run as >Run Configurations
??????Test???У????Run all tests in the selected project??or package
?????????????Eclipse??????????????μ?InstrumentationTestRunner
??????Instrumentation runner???????????д??InstrumentationTestRunner
???????Apply???????
????4.???????????в???????
Running all tests: adb shell am instrument -w com.android.foo/com.example.test.instrumentation.InstrumentationTestRunner
Running a single testcase: adb shell am instrument -w -e class com.android.foo.FooTest com.android.foo/com.example.test.instrumentation.InstrumentationTestRunner
Running multiple tests: adb shell am instrument -w -e class com.android.foo.FooTest??com.android.foo.TooTest com.android.foo/com.example.test.instrumentation.InstrumentationTestRunner
???????????????в?????????????????????????InstrumentationTestRunner?????μ?InstrumentationTestRunner?У?
??????????????????????????????????????????е?TEST-all.xml??????????????Running a single testcase??????ж??????????????????????????????????????????????Running multiple tests???
????5.????????????е????????
????adb -s $ANDROID_AVD_DEVICE pull /mnt/sdcard/rototium/TEST-all.xml
????????$ANDROID_AVD_DEVICE???????????????к?
????6.??jenkins?????????????????Publish JUnit test result report????????ó?????????????