forked from joelhooks/tinytlf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd_to_build_later.txt
executable file
·33 lines (32 loc) · 1.69 KB
/
add_to_build_later.txt
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
32
33
<!-- Run Unit Tests -->
<target name="test" depends="build-components">
<echo>[test] Running Unit Tests</echo>
<!-- Compile TestRunner.mxml as a SWF -->
<java jar="${FLEX_HOME}/lib/mxmlc.jar" dir="${FLEX_HOME}/frameworks" fork="true" failonerror="true">
<arg value="${test.src.loc}/TinyTLFTest.mxml"/>
<arg value="-source-path=${core.src.loc}"/>
<arg value="-source-path=${gestures.src.loc}"/>
<arg value="-source-path=${extensions.src.loc}"/>
<arg value="-source-path=${components.src.loc}"/>
<!-- Flash those sweet legs. Blink and you'll miss 'em. -->
<arg value="-output=${bin.loc}/TestRunner.swf"/>
<arg value="-default-size=200,200"/>
<arg value="-default-background-color=0x000000"/>
<!-- Include classes from SWCs in this folder, but only the ones we use. -->
<arg value="-library-path+=${lib.loc}"/>
<!-- So true. -->
<arg value="-incremental=true"/>
<arg value="-verbose-stacktraces=true"/>
<arg value="-headless-server=true"/>
</java>
<!-- Execute TestRunner.swf as FlexUnit tests and publish reports -->
<flexunit swf="bin/TestRunner.swf" toDir="${report.loc}" haltonfailure="true" verbose="true" localTrusted="true"/>
<!-- Generate readable JUnit-style reports -->
<junitreport todir="${report.loc}">
<fileset dir="${report.loc}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${report.loc}/html"/>
</junitreport>
<echo>[test] Finished running Unit Tests</echo>
</target>