cd <inside the app directory>
android update project --path .
android update test-project -m <full path to app directory (not just .)> -p ../test/
cd ../test/
ant coverage
Please use the following xml file as formatting in eclipse and make it to be applied whenever a file is saved. https://android.git.kernel.org/?p=platform/development.git;a=blob_plain;f=ide/eclipse/android-formatting.xml;hb=HEAD