"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
  •  | 
  •  

Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top