"EMMA: nothing to do: no metadata found in any of the data files" while creating coverage.html in android with Emma

StackOverflow https://stackoverflow.com/questions/16709069

  •  30-05-2022
  •  | 
  •  

質問

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 file will be generated in coverage folder of AOSP root directory.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top