We ran core tests by the command "/development/testrunner/runtest.py - v --coverage core" and got coverage report successfully. But the reports says all are 0%. We ran apidemos and got coverage report which looks good.
Below is the console output for core tests: ------------------------------------------------------------------------------------- No private recovery resources for TARGET_DEVICE dream-open make: ディレクトリ `/usr/forCurl/android1.6r1' に入ります make: `files' に対して行うべき事はありません. make: ディレクトリ `/usr/forCurl/android1.6r1' から出ます Syncing to device... about to run adb sync syncing /system... 0 files pushed. 377 files skipped. syncing /data... 0 files pushed. 8 files skipped. Waiting for device package manager... about to run adb wait-for-device about to run adb shell pm path android about to run adb shell cat init.rc | grep BOOTCLASSPATH | grep emma.jar Waiting for instrumentation to be present about to run adb shell pm list instrumentation | grep android.core/ android.test.InstrumentationTestRunner Running in coverage mode, suppressing test output am instrument -e class 'android.core.CoreTests' -e coverage 'true' -r - w android.core/android.test.InstrumentationTestRunner about to run adb shell am instrument -e class 'android.core.CoreTests' -e coverage 'true' -r -w android.core/ android.test.InstrumentationTestRunner Failure in android.webkit.CookieTest:testPath: junit.framework.AssertionFailedError at android.webkit.CookieTest.testPath(CookieTest.java:191) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:164) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:151) at android.test.InstrumentationTestRunner.onStart (InstrumentationTestRunner.java:425) at android.app.Instrumentation$InstrumentationThread.run (Instrumentation.java:1520) Tests run: 312, Failures: 1, Errors: 0 about to run adb shell ls /data/data/android.core/files/coverage.ec about to run adb pull /data/data/android.core/files/coverage.ec /usr/ forCurl/android1.6r1/out/emma/framework/core/core.ec EMMA: processing input files ... EMMA: 2 file(s) read and merged in 503 ms EMMA: writing [html] report to [/usr/forCurl/android1.6r1/out/emma/ framework/core/core.html] ... Coverage report generated at /usr/forCurl/android1.6r1/out/emma/ framework/core/core.html ---------------------------------------------------------------- So I wonder why core tests's coverage report says 0% and how can I make the report make sense. Thanks in advance. James -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en