Permalink
Browse files

add emma filter to make file

so the code coverage report won't contain classes from local static
Java libraries

Change-Id: I039963fd2baff94bc9eed8f16a5d2b2786616e0c
  • Loading branch information...
1 parent 02123b7 commit f1ee431f3c9e6074ed308312867808490b1770f6 Guang Zhu committed Jul 29, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 Android.mk
View
@@ -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

0 comments on commit f1ee431

Please sign in to comment.