Android test build xml: produce proper coverage reports

pull/14/head
Tim Su 14 years ago
parent 64688d1a2c
commit aa7ed3dc94

@ -16,3 +16,11 @@
# The password will be asked during the build when you use the 'release' target.
tested.project.dir=../astrid
# output files and apk
out.dir=bin
# source directory must be underneath output directory
# because we pull in from multiple source folders
source.dir=${out.dir}/source

@ -64,17 +64,22 @@
-->
<setup />
<!-- TODO multiple source folders
<target name="coverage">
<subant target="help">
<fileset file="${tested.project.absolute.dir}/build.xml" />
</subant>
<copy todir="${tested.project.absolute.dir}/bin/source">
<fileset dir="../../astridApi/src" />
<fileset dir="../../astridApi/src" includes="**/*.java" />
<fileset dir="src" includes="**/*.java" />
</copy>
<!-- copy our own sources to source dir -->
<mkdir dir="${source.dir}" />
<copy todir="${source.dir}">
<fileset dir="src" />
</copy>
<antcall target="android_test_rules.coverage">
<param name="source.dir" value="bin/source" />
</antcall>
</target> -->
</target>
</project>

Loading…
Cancel
Save