Quantcast
Channel: Adobe Community : Popular Discussions - FlexUnit
Viewing all articles
Browse latest Browse all 25673

ant tests: undefined method runWithFlexUnit4Runner?

$
0
0

Hi all!

 

I am trying to automate AIR tests that run successfully via Adobe Flash Builder 4.

I get the following error:

  Error: Call to a possibly undefined method runWithFlexUnit4Runner through a reference with static type flexunit.flexui:FlexUnitTestRunnerUI.

    [mxmlc]

    [mxmlc]                 testRunner.runWithFlexUnit4Runner(currentRunTestSuite(), "unit_tests");

when I run the tests from command line via: ant -v clean package.

 

The part of the build.xml responsible for this is:

 

<target name="test" depends="compile">

<!-- Execute FlexUnit tests and publish reports -->

         <mxmlc

            file="${test.src.loc}/FlexUnitApplication.mxml"

            output="${bin.loc}/FlexUnitApplication.swf"

            actionscript-file-encoding="UTF-8"

            keep-generated-actionscript="true"

            incremental="false"

        >

           <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>

           <source-path path-element="${FLEX_HOME}/frameworks"/>

           <compiler.source-path path-element="${test.src.loc}"/>

           <compiler.include-libraries dir="${lib.loc}" append="true">

            <include name="pb3dlib.swc"/>

 

            <include name="airframework.swc"/>

            <include name="airglobal.swc"/>

            <include name="airspark.swc"/>

            <include name="applicationupdater_ui3.swc"/>

            <include name="automation_airspark.swc"/>

            <include name="automation_spark.swc"/>

            <include name="flexunit_0.9.swc"/>

            <include name="flexunit-aircilistener-4.1.0.swc"/>

            <include name="flexunit-cilistener-4.1.0.swc"/>

            <include name="flexunit-core-flex-4.0.0.2-sdk3.5.0.12683.swc"/>

            <include name="flexunit-core-flex-4.1.0.swc"/>

            <include name="flexunit-uilistener-4.1.0.swc"/>

            <include name="flexunitextended.swc"/>

            <include name="hamcrest-1.0.2.swc"/>

            <include name="spark.swc"/>

            <include name="utilities.swc"/>

            <include name="flexunit.swc"/>

            <include name="FlexUnitOptional.swc"/>

            <include name="FlexUnitTestRunner_rb.swc"/>

           </compiler.include-libraries>

        </mxmlc>

What swc do I need to include?

 

Thanks,

--Andreea


Viewing all articles
Browse latest Browse all 25673

Trending Articles