" EMMA:无关:没有任何数据文件&QUOT发现的元数据;同时创造coverage.html在机器人与艾玛 [英] "EMMA: nothing to do: no metadata found in any of the data files" while creating coverage.html in android with Emma

查看:323
本文介绍了" EMMA:无关:没有任何数据文件&QUOT发现的元数据;同时创造coverage.html在机器人与艾玛的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Android模拟器中创建coverage.ec文件,并可以查看文件,但不能够读取conents.According据我所知,我们只能生成coverage.html文件后,看到的覆盖面。对于产生这个我通过构建了Android应用程序和测试项目 CoverageTestHowTo 。但随着出coverage.em文件我无法创建coverage.html文件。是否有任何其他的方式来产生coverage.html?或者帮我产生coverage.em文件。

I have created coverage.ec file in android emulator and able to view the file, but not able to read the conents.According to my knowledge, we can see the coverage only after generating coverage.html file. For generating this I have gone through Building an Android app and test project and CoverageTestHowTo . But with out coverage.em file I am not able to create coverage.html file. Is there any other way to generate coverage.html ? or help me to generate coverage.em file.

推荐答案

您所做的一切都是正确的只需要运行下面的命令:

You have done everything correctly just run following command:

java -cp external/emma/lib/emma.jar emma report -r html -in coverage.ec -sp <path-to-src-of-project-under-test> -in out/target/common/obj/APPS/<yourproject_intermediates>/coverage.em

HTML文件将在AOSP根目录的覆盖文件夹中生成的。

html file will be generated in coverage folder of AOSP root directory.

这篇关于&QUOT; EMMA:无关:没有任何数据文件&QUOT发现的元数据;同时创造coverage.html在机器人与艾玛的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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