Emma+Junit+Ant test android coverage
来源:互联网 发布:人机大战与网络象棋 编辑:程序博客网 时间:2024/05/21 11:32
/etc/profile
export JAVA_HOME=/usr/local/jdk/jdk1.7.0_67
export ANT_HOME=/usr/local/apache-ant-1.9.4
export ANDROID_HOME=/home/kq/android/adt-bundle-linux-x86_64-20140702/sdk
export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin::${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
1. install ant
download from http://ant.apache.org/
2. create android project
project : AndroidDemo
3. create android testproject
project: AndroidDemoTest
4. convert to ant project
android update project -p appcompat_v7 -n appcompat_v7 (optional , if compatible with low version, required)
android update project -p ../AndroidDemo -n AndroidDemo
android update test-project -m ../AndroidDemo -p ../AndroidDemoTest/
-----------------------------------------------------------------------------------------------------------------------------
android update project -p path -n name
-p The project's directory. [required]
-n Project name.
android update test-project -p path -m testproject
-p The project's directory. [required]
-m Directory of the app under test, relative to the test project directory. [required]
-----------------------------------------------------------------------------------------------------------------------------
5. install
open android emulator
go to AndroidDemoTest Directory
ant clean emma debug install test
- Emma+Junit+Ant test android coverage
- Android Junit Test(semc-build编译并且生成emma coverage)
- junit ant emma coverage shell script
- How to do android emma coverage test in your own ant scipts
- Android项目集成Jenkins(JUnit test & Coverage)
- Android test + emma
- Android 使用Ant+Emma+Junit收集android代码覆盖率(来自联想的一位同事2012.12.24)
- 结合junit + ant + emma实现Android项目单元测试代码覆盖率统计
- junit + ant + emma生成代码测试覆盖率报告
- 持续集成环境搭建(hudson+ant+JUNIT+EMMA)<1>
- Maven + Emma code coverage example
- 持续集成环境搭建(hudson+ant+JUNIT+EMMA)<2>之ant脚本
- Test Coverage
- Android Code Coverage for Blackbox Test
- 使用ant 跑junit test 生成 report
- Ant build 批量执行Junit Test
- android junit test问题
- android junit test问题
- 关于安卓应用(APK文件)的二次打包
- 正则表达式
- 2014第二届“鹰目之光”户外广告创意大赛
- MySQL忘记密码恢复密码的实现方法
- 位图数据结构的
- Emma+Junit+Ant test android coverage
- lua 读、写文件基本操作实例(二)
- java和c++中的多态、重载、覆盖、隐藏
- 数据结构学习----线性表(Java版的实现)
- Silkscreen over Component Pads Constraint 错误解决方案
- zoj1003 Crashing Balloon
- $("id").val()
- Eclipse热键组合
- Grizzly开发Echo服务器实战