?????????????????????????????????+??????????????????÷??????????public????????????

????????????????TestSuite??TestRunner?????????????????????з?????

???????????TestSuite????????ò???????????С??????????????TestSuite?????????MyTestSuite????SnakeTest??TileViewTest?е??????????????С?

????????????TestRunner????????????Щ???????????????TestRunner????????????????AndroidMenifest.xml?????????Instrumentation???塣

?????????TestRunner????????????Instrumentation???

?????????????в????

??????в?????????????1?????Eclipse?????2??????????С?

??????????????Eclipse???????????????в???????????е???????????????????????????????Run As -> OPhone JUnit Test??

???????????????????????????????????????????????Run As -> OPhone JUnit Test??

?????????????????????test?????????????л?????????????Outline???????????test?????????????????Run As -> OPhone JUnit Test??

??????????????????????в????????????????£?

????????SDK??·????????????????????У???????????test??avd ?????????????????Snake.apk?????????????????SnakeUnitTest.apk????????apk??????D???

????????Windows??????cmd????????emulator –avd test??????????

???????adb install D??Snake.apk??adb install D??SnakeUnitTest.apk?????????ú???????????????????????????????????????????????????adb uninstall ??

??????в??????

?????? ???????в????

????adb shell am instrument -w oms.unittest.snake /android.test.InstrumentationTestRunner

?????? ???????TestSuite??????????

????adb shell am instrument -e class oms.unittest.snake.MyTestSuite -w oms.unittest.snake/android.test.InstrumentationTestRunner

?????? adb shell am instrument -e class oms.unittest.snake.SnakeViewTest -w oms.unittest.snake/android.test.InstrumentationTestRunner