Android 单元测试
来源:互联网 发布:python和web前端 编辑:程序博客网 时间:2024/05/21 05:06
这个写的也不错:
http://jingyan.baidu.com/article/c1465413a105b00bfcfc4c18.html
下面是自己的:
今天在群里说面试的事情,问需要什么技术。有一个人说单元测试。虽然我知道,但是我忘了,在这里再次试验了一次,嗯,现在可以很自信的站出来,我会单元测试。
上图:
1.在项目里面的清单文件里面
2.写测试的代码
集成AndroidTestCase ,里面写测试的方法
import android.test.AndroidTestCase;public class TestCase extends AndroidTestCase { public void Test(){ Utils.getString(); }}
3,对着方法点击 Run as AndroidJunitTest
看结果
0 0
- android 单元测试
- Android单元测试
- Android单元测试
- android单元测试
- Android单元测试
- Android单元测试
- android单元测试
- android单元测试
- Android单元测试
- Android单元测试
- android 单元测试
- android 单元测试
- Android--单元测试
- android单元测试
- Android单元测试
- Android单元测试
- Android单元测试
- ANDROID 单元测试
- Android之光线传感器
- H264 编码原理及I帧B帧P帧
- JavaScript 学习笔记01
- R常用函数
- ubuntu grub引导界面修改
- Android 单元测试
- PAT乙级—1051. 复数乘法 (15)-native
- Clojure ns 宏介绍
- http://www.mamicode.com/info-detail-1150460.html
- Linux Tricks(一)—— 快速清空文本文件内容
- 使用Kotlin简化Android开发
- AppStore审核指南
- Gauss poj 1830
- 使用Hibernate 创建数据表时,如何使数据库中的字段的长度和Hibernate映射的长度相等呢?