Greetings,
I am trying to enable Emma code coverage for testing using the development/testrunner/runtest.py script found in the android source. In this case, I want to run the frameworks-graphics test with coverage enabled. An error is being thrown when I try to build the framework module with Emma instrumentation enabled. These are the steps I took to try to do so:
In build/core/java_library.mk, I added these lines to enable Emma instrumentation when using make for java libraries.
Then I entered these commands on the shell.
. ./build/envsetup.sh
lunch lunch aosp_arm-eng
make clean-framework
make framework
The output of the failed build is hosted here: http://pastebin.com/HuDytZUX
I have read the below mailing list threads regarding questions relating to enabling code coverage; however, I had no luck in getting coverage for this test. I could not follow the procedure in the second url because it uses an earlier android version (cupcake) then the one I'm trying use (5.1). If anyone was any insight on what I should do, it would be greatly appreciated.
Emma Code Coverage Issues
https://groups.google.com/forum/#!topic/android-building/oR6NwBSWadc
Thank You,
Aaron Marquez