Skip to content

Instantly share code, notes, and snippets.

@Axxiss
Created November 26, 2012 08:35
Show Gist options
  • Select an option

  • Save Axxiss/4147213 to your computer and use it in GitHub Desktop.

Select an option

Save Axxiss/4147213 to your computer and use it in GitHub Desktop.
Download junit report from AVD
<target name="init-props">
<xpath input="${tested.project.dir}/AndroidManifest.xml"
expression="/manifest/@package" output="tested.project.app.package"/>
</target>
<target name="fetch-test-report" depends="init-props">
<echo>Downloading XML test report...</echo>
<mkdir dir="reports"/>
<exec executable="${adb}" failonerror="true">
<arg line="${adb.device.arg}"/>
<arg value="pull"/>
<arg value="/data/data/${tested.project.app.package}/files/junit-report.xml"/>
<arg value="reports/junit-report.xml"/>
</exec>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment