Hello,
         I'm working in a project with FlexUnit, Ant and Bamboo as continuos
integration tool, have you ever try to do this? How is the ant tasks that
you need to Run? How the FlexUnitTestRunner works in the servers (because
always open the browser for running the tests)? Do you have any example of
this working?
I would appreciate any information about this, there isn't much information
about this in the websites!

Thanks a lot,
Fer

this is the part that runs the test in the ant file.

    <!-- Run unit test -->
    <target name="unit-tests" depends="init" description="Compiles and runs
the tests">
        <mxmlc file="${flex.unit.runner}"
            output="${flex.unit.swf}"
            actionscript-file-encoding="${ENCODING}"
            keep-generated-actionscript="false"
            incremental="false">
            <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"
/>
            <source-path path-element="${FLEX_HOME}/frameworks" />
            <compiler.source-path path-element="${src.dir}" />
            <compiler.include-libraries dir="${lib.dir}"
                append="true">
                <include name="**/*.swc" />
            </compiler.include-libraries>
        </mxmlc>
        <echo>Running Test Runner SWF</echo>
        <flexunit swf="${flex.unit.swf}"
            toDir="${report.dir}"
            haltonfailure="false"
            verbose="true"
            localTrusted="true"
            timeout="90000"/>
        <echo>Ran Test Runner SWF</echo>

        <echo>Generate Readable Tests</echo>
        <junitreport todir="${report.dir}">
            <fileset dir="${report.dir}">
                <include name="Test-*.xml"/>
            </fileset>
            <report format="frames" todir="${report.dir}/html"/>
        </junitreport>
        <echo>Generated Readable Tests</echo>
    </target>

Reply via email to