Can anybody help me on Code coverage?

I have sucessfully created a testing environment and able to execute
the Instrumentation.
I would like to get a code coverage report. But i dont see any
documentation on this topic where as the Docs say that -e coverage
true would create a '.ec' file in /sdcard/.
I never got any such file even after the sucessful execution of all my
test cases.

case 1:
I tried in command prompt:
adb shell am instrument -w -e coverage true com.android.example.app/
android.test.InstrumentationTestRunner
adb shell am instrument -w -e coverageFile /sdcard/mytestresult.ec
com.android.example.app/android.test.InstrumentationTestRunner

But no report got generated.

case 2:
I tried from Eclipse.
I made all coverage configurations (adding external emma.jar files)
and when called on for coverage, it pops a window stating, " No
coverage data iw written during the coverage session. Please make sure
that the project does NOT include EMMA runtime libraries or EMMA
Configuration settings.Do not terminate java process manually from
Eclipse"

Its a wired reply ever i experienced.

Please reply a detailed way to proceed for code coverage.
This wil definetly help me and and other too...
--~--~---------~--~----~------------~-------~--~----~
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