Android test build xml: produce proper coverage reports

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

@ -16,3 +16,11 @@
# The password will be asked during the build when you use the 'release' target. # The password will be asked during the build when you use the 'release' target.
tested.project.dir=../astrid 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 /> <setup />
<!-- TODO multiple source folders
<target name="coverage"> <target name="coverage">
<subant target="help"> <subant target="help">
<fileset file="${tested.project.absolute.dir}/build.xml" /> <fileset file="${tested.project.absolute.dir}/build.xml" />
</subant> </subant>
<copy todir="${tested.project.absolute.dir}/bin/source"> <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> </copy>
<antcall target="android_test_rules.coverage"> <antcall target="android_test_rules.coverage">
<param name="source.dir" value="bin/source" /> <param name="source.dir" value="bin/source" />
</antcall> </antcall>
</target> --> </target>
</project> </project>

Loading…
Cancel
Save