如何使用过滤器,艾玛建设的Andr​​oid测试蚂蚁的时候? [英] How can I use filter for emma when building Android test with ant?

查看:104
本文介绍了如何使用过滤器,艾玛建设的Andr​​oid测试蚂蚁的时候?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何建立我的Andr​​oid测试项目时使用的艾玛蚂蚁,但我无法找到如何使用SDK时使用的过滤器的任何提示。艾玛网站解释你自己打电话时,艾玛,但在Android SDK构建文件艾玛是不是叫蚂蚁文件或命令行上的,所以我不能够添加过滤器选项。

I know how to use emma in ant when building my android test project but I can't find any tips on how to use filters when using the SDK. The emma website explains it when calling emma yourself but in the Android SDK build files emma is not called in the ant files or on the commandline so I'm not able to add the filter options.

任何人有什么建议?

推荐答案

由于SDK工具R18,你可以简单地添加

As of SDK Tools r18 you can simply add

emma.filter=-com.your.excluded.package.*

到项目的ant.properties(不测试项目

这篇关于如何使用过滤器,艾玛建设的Andr​​oid测试蚂蚁的时候?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆