与Android&QUOT蚂蚁艾玛测试;找不到文件coverage.em删除&QUOT。 [英] Ant emma test with android "Could not find file coverage.em to delete."
问题描述
我试图让code范围设置为我使用Ant和Emma Android项目,和我有项目顺利建设,检测程序成功运行,并且coverage.ec文件生成,但覆盖报告不被产生。当我跑蚂蚁-verbose艾玛测试
我得到了以下线索:
I'm trying to get code coverage set up for my android project with Ant and Emma, and I have the project successfully building, the tests successfully running, and the coverage.ec file generating, but the coverage reports aren't being generated. When I ran ant -verbose emma test
I got the following clues:
[report] nothing to do: no metadata found in any of the data files
...
[delete] Could not find file /path/to/my/testProject/bin/coverage.em to delete.
我使用的是Android命令行工具,它从{} sdk.dir进口非常大的build.xml文件/工具/蚂蚁目录中生成的默认build.xml文件。我比那里的片段,我在网上找到,一切似乎是为了的信息。我在想什么?如何生成的文件coverage.em?
I'm using the default build.xml file generated by the android command line tool, which imports a very large build.xml file from the {sdk.dir}/tools/ant directory. I've compared the info there to snippets I've found online and everything seems to be in order. What am I missing? How do I generate the coverage.em file?
推荐答案
我按下面的步骤获得覆盖报告成功:
I get the coverage report successfully by following steps:
0.install我的系统上的蚂蚁
0.install ant on my system
1。(在SDK /工具DIR)
1.(in the sdk/tools dir)
android update project -p <path to app project>
2,(在SDK /工具DIR)
2.(in the sdk/tools dir)
android update test-project -m <path to app project> -p <path to test project>
3(在测试项目根目录)
3.(in the test project root dir)
ant clean emma debug install test
4,报告/bin/coverage.html
4.the report is /bin/coverage.html
这篇关于与Android&QUOT蚂蚁艾玛测试;找不到文件coverage.em删除&QUOT。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!