冒烟测试:
adb shell monkey -p <程序的包名> -v <事件的数量>
Android下单元测试
在AndroidManifest.xml文件中配置
在manifest节点下:
<instrumentation android:name="android.test.InstrumentationTestRunner" android:targetPackage="com.example.class" />
在application节点下配置下面信息
<uses-library android:name="android.test.runner" />