Running tests on an Android emulator or device is slow! Building, deploying, and launching the app often takes a minute or more. That's no way to do TDD. There must be a better way. //原生的单元测试的运行时测试形式很慢,构建部署启动也会费很长时间,使用这个框架就是个比较好的办法 Wouldn't it be nic…
近期在更改程序架构的时候,用引用Library的方式实现程序的共享化过程中发现R.id.xx的文件不能够在 switch cases 中使用 看代码提示,如下信息: As of ADT 14, resource fields cannot be used as switch cases. In other words, the constants are not final in a library project. The reason for this is simple: When…
layout: post title: Roboletric探索之路,从抗拒到依赖 description: Roboletric Android Unit Testing category: blog --- 我为什么以前抗拒Android Unit Testing 1.懒,人类最大的天敌: 2.不是不知道什么是单元测试,只是需求太多了,哪有时间~: 3.需要学习单元测试的语言或者框架,不熟悉,所以从没尝试过: 4.没见到单元测试的好处,一想到要花时间就望而却步: 5.至少只是我个人之前的感受…
目录(?)[-] Android automated testing 1 How to test Android applications Tip 2 Unit tests vs functional tests 3 JUnit 3 4 Running tests on a server without display Test hooks into the Android framework 1 Instrumentation 2 How the Android system executes…
Android Studio 是一个新的基于 IntelliJ IDEA Android 的安卓开发环境,它对 Eclipse ADT 进行了改进并新增了功能. Feature Android Studio ADT Build system Gradle Ant Maven-based build dependencies Yes No Build variants and multiple-APK generation (great for Android Wear) Yes No Advan…
http://www.cnblogs.com/JohnTsai/p/3975022.html http://www.zhihu.com/question/19801131 In my previous post I showed how to perform asynchronous web API calls in native Android code, after showing how to do it in native iOS a few days before. My Androi…
1.安装java jdk去oracle公司下载jdk-7u15-windows-i586.exehttp://www.oracle.com/technetwork/cn/java/javase/downloads/jdk7-downloads-1880260-zhs.html---C:\Documents and Settings\XXXX>java -versionjava version "1.7.0_15"Java(TM) SE Runtime Environment (b…
Posted In | Automation Testing, Mobile Testing, Software Testing Tools Nowadays automated tests are used during almost every testing process. This is not surprising, as properly organized automated testing greatly reduces time needed for a testing…