How to do android emma coverage test in your own ant scipts
来源:互联网 发布:厂家寻找淘宝卖家合作 编辑:程序博客网 时间:2024/06/09 23:55
引用:http://www.cnitblog.com/reene/archive/2011/06/30/74504.html1. emma taskdef <!-- Emma configuration -->
<property name="emma.dir" value="${android.sdk.root}/tools/lib" />
<path id="emma.lib.dir">
<pathelement location="${emma.dir}/emma.jar" />
<pathelement location="${emma.dir}/emma_ant.jar" />
</path>
<taskdef resource="emma_ant.properties" classpathref="emma.lib.dir" />
<!-- End of emma configuration -->
<path id="emma.lib.dir">
<pathelement location="${emma.dir}/emma.jar" />
<pathelement location="${emma.dir}/emma_ant.jar" />
</path>
<taskdef resource="emma_ant.properties" classpathref="emma.lib.dir" />
<!-- End of emma configuration -->
2. <!-- - - - - - - - - - - - - - - - - -
target: emma-instrument
- - - - - - - - - - - - - - - - - -->
<target name="emma.instrument" if="enable.emma.on.test">
<property name="emma.enabled" value="true" />
<echo>Instrumenting classes from ${project.base.dir}/${android.project.dir}/bin,${project.base.dir}/${android.project.dir}/libs/sup-client.jar</echo>
<!-- It only instruments class files, not any external libs -->
<emma enabled="${emma.enabled}">
<instr mode="overwrite"
instrpath="${project.base.dir}/${android.project.dir}/bin,${project.base.dir}/${android.project.dir}/libs/sup-client.jar"
outdir="${project.base.dir}/${android.project.dir}/bin">
</instr>
<!-- TODO: exclusion filters on R*.class and allowing custom exclusion from
user defined file -->
</emma>
<echo>Copy emma. to project libs</echo>
<copy todir="${project.base.dir}/${android.project.dir}/libs" overwrite="true">
<fileset dir="${emma.dir}" includes="emma_device.jar"/>
</copy>
</target>
- - - - - - - - - - - - - - - - - -->
<target name="emma.instrument" if="enable.emma.on.test">
<property name="emma.enabled" value="true" />
<echo>Instrumenting classes from ${project.base.dir}/${android.project.dir}/bin,${project.base.dir}/${android.project.dir}/libs/sup-client.jar</echo>
<!-- It only instruments class files, not any external libs -->
<emma enabled="${emma.enabled}">
<instr mode="overwrite"
instrpath="${project.base.dir}/${android.project.dir}/bin,${project.base.dir}/${android.project.dir}/libs/sup-client.jar"
outdir="${project.base.dir}/${android.project.dir}/bin">
</instr>
<!-- TODO: exclusion filters on R*.class and allowing custom exclusion from
user defined file -->
</emma>
<echo>Copy emma. to project libs</echo>
<copy todir="${project.base.dir}/${android.project.dir}/libs" overwrite="true">
<fileset dir="${emma.dir}" includes="emma_device.jar"/>
</copy>
</target>
333
- How to do android emma coverage test in your own ant scipts
- Emma+Junit+Ant test android coverage
- How to create your own ListBox in C#
- How to Set Up Your Own Home Seedbox (in Windows)
- How To Write Your Own Ebook(r) In 7 Days!
- Android Junit Test(semc-build编译并且生成emma coverage)
- Parcelable - How to do that in Android
- How to write your own custom Form
- How to make your own VST host
- How To Create Your Own Smarty Function
- How to make your own maps/tiles
- How to develop your own Boot Loader
- How to learn on your own
- How to install your own zImage
- How to create your own custom 404 error page and handle redirect in SharePoint 2007 (MOSS)?
- HOWTO: How to Provide Your Own DllMain in an MFC Regular DLL
- learn PCL 02 How to use pcl in your own project.
- HOWTO: How to Provide Your Own DllMain in an MFC Regular DLL
- GridView动态创建列、多行表头
- Asp.net中Word文件转换成HTML
- 远程桌面按键后出现Windows 键的功能?教你方法解决!
- 经典人事面试70问
- MIPS MMU和 Memory Management
- How to do android emma coverage test in your own ant scipts
- PHP环境方面
- ajax 与 jquery ajax
- 创建文本文档
- 打包jar时Class-Path的配置方式
- Linux内核高端内存
- Custom HTTP Headers in iPhone UIWebView
- Linux内核中的宏:__init and __exit
- 每周一荐:文本处理工具AWK