aboutsummaryrefslogtreecommitdiffstats
path: root/files/ant/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'files/ant/build.xml')
-rw-r--r--files/ant/build.xml14
1 files changed, 12 insertions, 2 deletions
diff --git a/files/ant/build.xml b/files/ant/build.xml
index 699fb58ba..9ada8f24f 100644
--- a/files/ant/build.xml
+++ b/files/ant/build.xml
@@ -1256,7 +1256,7 @@
<if condition="${emma.enabled}">
<then>
- <echo>WARNING: Code Coverage is currently only supported on the emulator and rooted devices.</echo>
+ <echo>Running tests...</echo>
<run-tests-helper emma.enabled="true">
<extra-instrument-args>
<arg value="-e" />
@@ -1264,6 +1264,17 @@
<arg value="${emma.dump.file}" />
</extra-instrument-args>
</run-tests-helper>
+
+ <echo level="info">Settting permission to download the coverage file...</echo>
+ <exec executable="${adb}" failonerror="true">
+ <arg line="${adb.device.arg}" />
+ <arg value="shell" />
+ <arg value="run-as" />
+ <arg value="${tested.project.app.package}" />
+ <arg value="chmod" />
+ <arg value="644" />
+ <arg value="${emma.dump.file}" />
+ </exec>
<echo level="info">Downloading coverage file into project directory...</echo>
<exec executable="${adb}" failonerror="true">
<arg line="${adb.device.arg}" />
@@ -1280,7 +1291,6 @@
</firstmatchmapper>
</pathconvert>
-
<emma>
<report sourcepath="${tested.project.source.absolute.dir}:${tested.project.lib.source.path.value}"
verbosity="${verbosity}">