Folks,
I am using FlexUnit4.1 Beta 3 and am seeing the <flexunit> Ant task fail when running tests that use the Air libraries. The project in question used to test just fine with version 4.0 earlier this year, but I just dusted it off after a branch change and tried re-running with 4.1and started seeing the failure.Here is the relevant console output:
[com.djte.library:flexunit] Validating task attributes ...
[com.djte.library:flexunit] Generating default values ...
[com.djte.library:flexunit] Using default working dir [C:\EclipseWorkspace3.5\report.renderer_tests_2\Source\Flex]
[com.djte.library:flexunit] Using the following settings for the test run:
[com.djte.library:flexunit] FLEX_HOME: [C:\iFABS_DE\dev\vert-d3flxcmn24\204100.32.0.20100926233508_d3flxcmn24]
[com.djte.library:flexunit] haltonfailure: [false]
[com.djte.library:flexunit] headless: [false]
[com.djte.library:flexunit] display: [99]
[com.djte.library:flexunit] localTrusted: [true]
[com.djte.library:flexunit] player: [air]
[com.djte.library:flexunit] port: [1024]
[com.djte.library:flexunit] swf: [C:\EclipseWorkspace3.5\report.renderer_tests_2\build\report.renderer.tests.unit.swf]
[com.djte.library:flexunit] timeout: [1800000ms]
[com.djte.library:flexunit] toDir: [C:\EclipseWorkspace3.5\report.renderer_tests_2\build\reports\xml]
[com.djte.library:flexunit] Setting up server process ...
[com.djte.library:flexunit] Starting server ...
[com.djte.library:flexunit] OS: [Windows]
[com.djte.library:flexunit] Opening server socket on port [1024].
[com.djte.library:flexunit] Waiting for client connection ...
[com.djte.library:flexunit] Launching player:
[com.djte.library:flexunit] Found AIR version: 1.5
BUILD FAILED
C:\public\JavaTools\DJTE\latest\DjteLibrary\library.xml:57: The following error occurred while executing this line:
: Error launching the test runner.
The error message is not very specific... The last output seen before the failure is "Found AIR version: 1.5". This makes me wonder if the problem is related to how I have Air installed on my Windows XP machine. Come to think of it, I am not sure exactly how the host machine should be configured to run FlexUnit tests that require Air. Do I really need Air to be installed? I have Air 2.0.3.13070 installed, but the <flexunit> task thinks it found version 1.5 - hmmm... I also have the debug Flash 10 player, and SWF appplications are configued to run using this player. Flex tests run fine, just not Air tests. What am I missing?
I see that 4.1 RC1 is now out, so I will grab that and give it a try.
If anyone who tests air more often has any advice - I am all ears!
Thanks,
Trevor