Changeset 276


Ignore:
Timestamp:
08/19/09 16:03:20 (4 years ago)
Author:
zach
Message:

Adding test suite

Location:
trunk/fl5
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/fl5/build/build.properties

    r272 r276  
    2222compc.exe = ${flexsdk.bin.dir}/compc.exe 
    2323mxmlc.exe = ${flexsdk.bin.dir}/mxmlc.exe 
     24amxmlc.exe = ${flexsdk.bin.dir}/amxmlc.bat 
    2425 
    2526# The location of Flex Unit on your sytem. 
     
    2930 
    3031flashDebugPlayer.exe = C:/Program Files/Adobe/Flex Builder 3/Player/win/FlashPlayer.exe 
    31  
     32airDebugLauncher.exe = ${flexsdk.bin.dir}/adl.exe 
    3233# ----------------------------------------------------------------- 
    3334# Project Files - DO NOT MODIFY 
     
    4546debug.dir = ${basedir}/bin-debug 
    4647docs.dir = ${basedir}/asdoc 
     48test.dir = ${basedir}/test 
  • trunk/fl5/build/build.xml

    r275 r276  
    7373                </exec> 
    7474        </target> 
     75         
     76        <target name="build-test"> 
     77                <exec executable="${amxmlc.exe}" dir="${basedir}"> 
     78                        <!-- Point to the main class .as file --> 
     79                        <arg line="'${test.dir}/PlayerTestRunner.as'" /> 
     80 
     81                        <!-- Place the built .swf file in the "bin" directory --> 
     82                        <arg line="-output '${basedir}/bin-test/TestRunner.swf'" /> 
     83 
     84                        <!-- Define source directories for "src" and "tests" --> 
     85                        <arg line="-compiler.source-path '${test.dir}'" /> 
     86                        <arg line="-compiler.source-path '${src.dir}'" /> 
     87 
     88                        <!-- Include the necessary framework libraries in the class path --> 
     89                        <arg line="-compiler.library-path '${flexsdk.lib.dir}'" /> 
     90                        <arg line="-compiler.library-path '${flexunit.lib.dir}'" />      
     91                        <arg line="-compiler.library-path '${lib.dir}'" /> 
     92 
     93                        <!-- Include locale-specific items in the path --> 
     94                        <arg line="-locale ${flexsdk.locale}" /> 
     95                        <arg line="-compiler.library-path '${flexsdk.locale.dir}'" /> 
     96 
     97                        <!-- Compile with network sandbox --> 
     98                        <arg line="-use-network=true" /> 
     99 
     100                        <!-- Ignore missing type definitions --> 
     101                        <arg line="-warnings=false" /> 
     102                </exec> 
     103        </target> 
    75104 
    76105        <target name="test-unit" depends="check-properties"> 
    77                 <exec executable="${flashDebugPlayer.exe}" spawn="yes"> 
    78                         <arg line="'${debug.dir}/player.swf'" /> 
     106                <exec executable="${airDebugLauncher.exe}"> 
     107                        <arg line="'${basedir}/bin-test/TestRunner-app.xml'" /> 
    79108                </exec> 
    80109        </target> 
Note: See TracChangeset for help on using the changeset viewer.