summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorGuang Zhu <guangzhu@google.com>2010-07-29 10:52:45 -0700
committerGuang Zhu <guangzhu@google.com>2010-08-26 10:51:40 -0700
commitf1ee431f3c9e6074ed308312867808490b1770f6 (patch)
treece6b6bd5dba29eb5a316d6f54df35d1e34319350 /Android.mk
parent02123b7cc8336ec5481f20c12ce5c7f2b9f044d4 (diff)
downloadpackages_providers_ContactsProvider-f1ee431f3c9e6074ed308312867808490b1770f6.zip
packages_providers_ContactsProvider-f1ee431f3c9e6074ed308312867808490b1770f6.tar.gz
packages_providers_ContactsProvider-f1ee431f3c9e6074ed308312867808490b1770f6.tar.bz2
add emma filter to make file
so the code coverage report won't contain classes from local static Java libraries Change-Id: I039963fd2baff94bc9eed8f16a5d2b2786616e0c
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 5e7b6b9..0224435 100644
--- a/Android.mk
+++ b/Android.mk
@@ -12,6 +12,13 @@ LOCAL_JAVA_LIBRARIES := ext
LOCAL_STATIC_JAVA_LIBRARIES += android-common
+# The Emma tool analyzes code coverage when running unit tests on the
+# application. This configuration line selects which packages will be analyzed,
+# leaving out code which is tested by other means (e.g. static libraries) that
+# would dilute the coverage results. These options do not affect regular
+# production builds.
+LOCAL_EMMA_COVERAGE_FILTER := +com.android.providers.contacts.*
+
LOCAL_PACKAGE_NAME := ContactsProvider
LOCAL_CERTIFICATE := shared