I had been surfing for the past one month on this Code coverage. But
its disappointing that there is no clear documentation on using EMMA
code coverage for Android.

case 1: I am trying to execute from Command prompt.
I have sucessfully implemented instrumentation class for my
application. I would like to go for code coverage. I executed the
following command in the cmd line:

adb shell am instrument -w -e coverage true com.android.app/
android.test.InstrumentationTestRunner

adb shell am instrument -w -e coverageFile /sdcard/codefile.ec
com.android.app/android.test.InstrumentationTestRunner

Also i have configured to run with sdcard.. I could see that all my
test cases are executed but no coverage file is generated at '/
sdcard'.

case 2: I am trying to execute from eclipse.
When i did all coverage configuration settings and try to run the
application, it pops up a message saying,
" No coverage data file has been written during this coverage session.
Please make sure that your application does NOT include EMMA run time
libraries or EMMA configurations.Do not terminate java process
manually from Eclipse"

Please do clarify my error.

Is there a right solution to get the code coverage for Android
applications...?

Pradeepa
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to