BobStore/test/custom_rules.xml
Hans-Christoph Steiner d813f1ec17 run JUnit tests using android-junit-report to get XML output
Jenkins needs some kind of report from the JUnit tests in order to tell
whether the tests succeeded or not.  android-junit-report is a library to do
exactly that.  With this setup, Jenkins should now successfully understand the
status of the JUnit tests, where before it just ran them and ignored the
results
2014-04-11 14:10:26 -04:00

20 lines
681 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="test_custom_rules" default="fetch-test-report">
<target name="fetch-test-report">
<xpath
expression="/manifest/@package"
input="${tested.project.dir}/AndroidManifest.xml"
output="tested.package" />
<echo>Downloading XML test report (/data/data/${tested.package}/files/junit-report.xml)…</echo>
<mkdir dir="junitreports"/>
<exec executable="${adb}" failonerror="true">
<arg line="${adb.device.arg}"/>
<arg value="pull" />
<arg value="/data/data/${tested.package}/files/junit-report.xml" />
<arg value="junit-report.xml" />
</exec>
</target>
</project>