码迷,mamicode.com
首页 > 移动开发 > 详细

android下的单元测试

时间:2015-06-07 23:40:32      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:android   单元测试   

android下的单元测试

在AndroidManifest.xml文件中配置以下信息:

    在manifest节点下添加:
	<!-- 指定测试信息和要测试的包 -->
    <instrumentation
        android:name="android.test.InstrumentationTestRunner"
        android:targetPackage="com.jxn.junittest" />
 
    在application节点下添加:
	<!-- 指定引用的测试包 -->
    <uses-library android:name="android.test.runner" />

注意:测试的类必须继承 android.test.AndroidTestCase类
	
	

android下的单元测试

标签:android   单元测试   

原文地址:http://blog.csdn.net/wodewutai17quiet/article/details/46405223

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!