且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

 1.在AndroidManifest清单文件中进行配置

更新时间:2022-08-28 22:09:24

 1.在AndroidManifest清单文件中进行配置

 1.在AndroidManifest清单文件中进行配置
<application
android:allowBackup="true"
android:debuggable="true" >
<!--配置资源包-->
<uses-library android:name="android.test.runner" />
</application>
<!-- 配置要进行单元测试的包targetPackage-->
<instrumentation
android:name="android.test.InstrumentationTestRunner"
android:label="My Text"
android:targetPackage="edu.qust.text" >
</instrumentation>
  2.定义一个继承自AndroidTestCase的测试类
public class Text extend AndroidTestCase{
public void testAdd throws Exception{
}
}


最新内容请见作者的GitHub页:http://qaseven.github.io/