diff options
author | Keita Kita <maoutwo@gmail.com> | 2012-01-27 00:23:46 +0900 |
---|---|---|
committer | Keita Kita <maoutwo@gmail.com> | 2012-01-27 21:56:04 +0900 |
commit | c16aec1100263d2e3449ba82d859b029c54007fb (patch) | |
tree | 993a62fe5209f66ac5d064b65d24bf6634b1f736 /files | |
parent | e6b690126992c44724912652dd6cb3c348e64b65 (diff) | |
download | sdk-c16aec1100263d2e3449ba82d859b029c54007fb.zip sdk-c16aec1100263d2e3449ba82d859b029c54007fb.tar.gz sdk-c16aec1100263d2e3449ba82d859b029c54007fb.tar.bz2 |
Add coverage filters.
* Add exclusion filters prevent from including
generated R and BuildConfig class in coverage report.
* Add emma.filter property for filtering (inclusion and exclusion)
instrumentation.
Change-Id: I0b6764e5f60917d004b7b3335ac060e82921c603
Diffstat (limited to 'files')
-rw-r--r-- | files/ant/build.xml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/files/ant/build.xml b/files/ant/build.xml index 7891176..575b3ec 100644 --- a/files/ant/build.xml +++ b/files/ant/build.xml @@ -52,6 +52,9 @@ <property name="java.source" value="1.5" /> <property name="java.compilerargs" value="" /> + <!-- instrumentation options --> + <property name="emma.filter" value="" /> + <!-- Verbosity --> <property name="verbose" value="false" /> @@ -692,9 +695,9 @@ mode="overwrite" instrpath="${out.absolute.dir}/classes" outdir="${out.absolute.dir}/classes"> + <filter excludes="${manifest.package}.R,${manifest.package}.R$$*,${manifest.package}.BuildConfig" /> + <filter value="${emma.filter}" /> </instr> - <!-- TODO: exclusion filters on R*.class and allowing custom exclusion from - user defined file --> </emma> </then> </if> |