-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild-tests.xml
31 lines (31 loc) · 1.18 KB
/
build-tests.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="utf-8" ?>
<project name="opprimendi-away3d-tests" basedir="." default="run">
<property file="build.properties"/>
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
<target name="run" depends="execute">
<exec executable="${tool.browser}">
<arg value="${away3d.tests.report}/index.html"/>
</exec>
</target>
<target name="execute">
<delete dir="${away3d.tests.report}" includeEmptyDirs="true" failonerror="false"/>
<mkdir dir="${away3d.tests.report}"/>
<as3unit debug="true" workingDir="${away3d.tests}" toDir="${away3d.tests.report}" haltonfailure="false" verbose="true" localTrusted="true">
<source dir="${agal.src}"/>
<source dir="${away3d.src}"/>
<testSource dir="${away3d.tests}">
<include name="**/*Test.as" />
</testSource>
<library dir="${flexunit.lib}">
<include name="**/flexunit-*.swc"/>
<include name="**/hamcrest-*.swc"/>
</library>
</as3unit>
<junitreport todir="${away3d.tests.report}">
<fileset dir="${away3d.tests.report}">
<include name="TEST-*.xml" />
</fileset>
<report format="frames" todir="${away3d.tests.report}" />
</junitreport>
</target>
</project>