In the past I have built an AOSP 4.2.2 instrumented code coverage build. Using Tradefederation, I set up my test harness to automatically collect coverage data and the use emma to generate a coverage report. However, I have recently attempted to build a code coverage build and after going through my test harness the numbers contained in the code coverage report are obviously incorrect. I have traced this back to a specific problem.
In the past, .em files (EMMA metadata files) were generated in out/**/APPS/${APP_NAME}_intermediates/coverage.em and also out/**/JAVA_LIBRARIES/${package name}_intermediates/coverage.em. However, currently the build system is only generating metadata files in paths containing "APPS", and no metadata is being placed in directories containing "JAVA_LIBRARIES". There are certain commits I can point to that change the Android build system, but I don't want to waste any people's time looking at the incorrect files. I'm wondering if anyone has an understanding of the build system when attempting to build a full instrumented build, and how this problem could have arisen.
If you would like more information, I am glad to help.
Thanks.