如何使用过滤器,艾玛建设的Andr​​oid测试蚂蚁的时候?艾玛、过滤器、如何使用、蚂蚁

2023-09-05 01:45:52 作者:帅到无法无天

我知道如何建立我的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(不测试项目)