For the above project I am creating the project using the "android"
tool and command "android create project" and "android create test-
project" to create the projects.  To make the build I am using ant and
for coverage I am using command "ant coverage" to make the coverage
report. Building is working fine but the coverage.ec has no coverage
data in it resulting in 0% coverage.
The complete logs of the build process are as follows:
###########################################
Buildfile: C:\AndroidWorkSpace3\CalculatorTest\build.xml
    [setup] Android SDK Tools Revision 6
    [setup] Project Target: Android 2.1
    [setup] API level: 7
    [setup] WARNING: No minSdkVersion value set. Application will
install on all Android versions.
    [setup] Importing rules file: platforms\android-7\templates
\android_test_rules.xml

-set-coverage-classpath:

-install-instrumented:
    [setup] Android SDK Tools Revision 6
    [setup] Project Target: Android 2.1
    [setup] API level: 7
    [setup] WARNING: No minSdkVersion value set. Application will
install on all Android versions.
    [setup] Importing rules file: platforms\android-7\templates
\android_rules.xml

-dirs:
     [echo] Creating output directories if needed...
    [mkdir] Created dir: C:\AndroidWorkSpace3\CalculatorTest
\instrumented
    [mkdir] Created dir: C:\AndroidWorkSpace3\CalculatorTest
\instrumented\classes

-resource-src:
     [echo] Generating R.java / Manifest.java from the resources...
     [exec]     (skipping index file 'C:\AndroidWorkSpace3\Calculator
\res\drawable-mdpi\Thumbs.db')

-aidl:
     [echo] Compiling aidl files into Java classes...

compile:
    [javac] C:\android\android-sdk-windows\platforms
\android-7\templates\android_rules.xml:248: warning:
'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 2 source files to C:
\AndroidWorkSpace3\CalculatorTest\instrumented\classes

-emma-instrument:
     [echo] Instrumenting classes from C:
\AndroidWorkSpace3\CalculatorTest\instrumented/classes...

-dex-instrumented:
     [echo] Converting compiled files and external libraries into C:
\AndroidWorkSpace3\CalculatorTest\instrumented\classes.dex...
     [echo]

-package-resources:
     [echo] Packaging resources
 [aaptexec] Creating full resource package...
     [null]     (skipping index file 'C:\AndroidWorkSpace3\Calculator
\res\drawable-mdpi\Thumbs.db')

-package-with-emma:
[apkbuilder] Creating Calculator-debug-unaligned.apk and signing it
with a debug key...
[apkbuilder] Using keystore: C:\Documents and Settings\Amit\.android
\debug.keystore

-debug-with-emma:
     [echo] Running zip align on final apk...

-install-with-emma:
     [echo] Installing C:\AndroidWorkSpace3\CalculatorTest\instrumented
\Calculator-debug.apk onto default emulator or device...
     [exec]     pkg: /data/local/tmp/Calculator-debug.apk
     [exec] Success
     [exec] 624 KB/s (0 bytes in 169822.000s)

-compile-tested-if-test:

-dirs:
     [echo] Creating output directories if needed...

-resource-src:
     [echo] Generating R.java / Manifest.java from the resources...
     [exec]     (skipping index file 'C:
\AndroidWorkSpace3\CalculatorTest\res\drawable-mdpi\Thumbs.db')

-aidl:
     [echo] Compiling aidl files into Java classes...

compile:
    [javac] C:\android\android-sdk-windows\platforms
\android-7\templates\android_rules.xml:248: warning:
'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1 source file to C:
\AndroidWorkSpace3\CalculatorTest\bin\classes

-dex:
     [echo] Converting compiled files and external libraries into C:
\AndroidWorkSpace3\CalculatorTest\bin\classes.dex...
     [echo]

-package-resources:
     [echo] Packaging resources
 [aaptexec] Creating full resource package...
     [null]     (skipping index file 'C:
\AndroidWorkSpace3\CalculatorTest\res\drawable-mdpi\Thumbs.db')

-package-debug-sign:
[apkbuilder] Creating CalculatorTest-debug-unaligned.apk and signing
it with a debug key...
[apkbuilder] Using keystore: C:\Documents and Settings\Amit\.android
\debug.keystore

debug:
     [echo] Running zip align on final apk...
     [echo] Debug Package: C:\AndroidWorkSpace3\CalculatorTest\bin
\CalculatorTest-debug.apk

install:
     [echo] Installing C:\AndroidWorkSpace3\CalculatorTest\bin
\CalculatorTest-debug.apk onto default emulator or device...
     [exec]     pkg: /data/local/tmp/CalculatorTest-debug.apk
     [exec] Success
     [exec] 336 KB/s (0 bytes in 16173.000s)

coverage:
     [echo] Running tests ...
     [exec]
     [exec] com.example.android.test.CalculatorTest:.Generated code
coverage data to /data/data/com.example.android/files/coverage.ec
     [echo] Downloading coverage file into project directory...
     [exec] 0 KB/s (0 bytes in 37.000s)
     [echo] Extracting coverage report...
   [report] no collected coverage data found in any of the data files
[all reports will be empty]
     [echo] Cleaning up temporary files...
   [delete] Deleting directory C:\AndroidWorkSpace3\CalculatorTest
\instrumented
   [delete] Deleting: C:\AndroidWorkSpace3\CalculatorTest\coverage.ec
   [delete] Deleting: C:\AndroidWorkSpace3\CalculatorTest\coverage.em
     [echo] Saving the report file in C:
\AndroidWorkSpace3\CalculatorTest/coverage/coverage.html

BUILD SUCCESSFUL
Total time: 55 seconds
###############################################3
 I could not find what's going wrong here. Please help me in this
regard

Thanks in Advance
Raghava Reddy

-- 
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