在android 采用 android junit test 测试注意

在Manifest.xml文件进行设置;

包名:com.study.s001

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.study.s001"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-sdk android:minSdkVersion="9" />
    
    <instrumentation
         android:name="android.test.InstrumentationTestRunner"
         android:targetPackage="com.study.s001" />   <!---   -------++++++ ->
    
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".StudyActivity2"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
      <uses-library android:name="android.test.runner" />  <!---   -------++++++ ->
    </application>
</manifest>

posted @ 2012-11-22 00:01  bert.zeng  阅读(189)  评论(0)    收藏  举报