"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