add custom ant rules for downloading JUnit results

This commit is contained in:
Hans-Christoph Steiner 2014-04-08 00:16:03 -04:00
parent c1d0ec43c3
commit da329089fb

15
custom_rules.xml Normal file
View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="custom_rules" default="fetch-test-report">
<target name="fetch-test-report">
<echo>Downloading XML test report…</echo>
<mkdir dir="junitreports"/>
<exec executable="${adb}" failonerror="true">
<arg line="${adb.device.arg}"/>
<arg value="pull" />
<arg value="/data/data/${tested.manifest.package}/files/junit-report.xml" />
<arg value="junitreports/junit-report.xml" />
</exec>
</target>
</project>