OSDN Git Service

Add ant-based code coverage support to Android SDK
authorPiotr Gurgul <pgurgul@google.com>
Wed, 2 Sep 2009 04:58:52 +0000 (21:58 -0700)
committerPiotr Gurgul <pgurgul@google.com>
Thu, 10 Sep 2009 01:32:03 +0000 (18:32 -0700)
commit150a6f07e86b8a98448efa21512197177f364c3c
tree641ce4ae7b3319fec073d8f9e155b73b040ad0a7
parent6596069cf7e2c5eacc5a39ceb5dffa37f600d1b7
Add ant-based code coverage support to Android SDK

Target 'run-tests' launches all the unit tests against the tested project.
Target 'coverage' emma-instruments the tested project's classes,
runs the tests against instrumented classes, collects code coverage data
and extracts it to human-readable form as report.html.
android_test_rules.xml contain additional rules for test projects.
Test projects are auto-recognized by presence of the tested.project.dir
property, which will be auto-generated for tests projects. Temporarily,
please add this property manually to the build.properties file.
Current version is mainly tested with default, android generated test projects.
This version includes also fixing relative to absolute paths for
properties which are most likely to be changed by user in external
property file.