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-07-29 10:52:45 -0700
commitcc103ab7af0127094cecd9579222de7c53edea63 (patch)
tree357e2c748a46765ac34e7756d8a3657cbe51676b /Android.mk
parent4fbe050dad387000d36caf07cff1a3fcbf12661f (diff)
downloadpackages_providers_ContactsProvider-cc103ab7af0127094cecd9579222de7c53edea63.zip
packages_providers_ContactsProvider-cc103ab7af0127094cecd9579222de7c53edea63.tar.gz
packages_providers_ContactsProvider-cc103ab7af0127094cecd9579222de7c53edea63.tar.bz2
add emma filter to make file
so the code coverage report won't contain classes from local static Java libraries Change-Id: Iba77ec5464a2d7aa34b4b58734537d986cc6fb42
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 ade9f46..e3b3bb4 100644
--- a/Android.mk
+++ b/Android.mk
@@ -12,6 +12,13 @@ LOCAL_JAVA_LIBRARIES := ext
LOCAL_STATIC_JAVA_LIBRARIES += android-common com.android.vcard
+# 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