On Fri, Dec 5, 2008 at 6:51 AM, sammy <[EMAIL PROTECTED]> wrote:
> If I run unit tests with my current setup, the 'open -g path/to/swf'
> will be executed and the Flash player will be launched, so
> consequently the tests will fails giving errors along the lines of
> "Error #1014: Class flash.filesystem::File could not be found.".  Is
> there a way I can test Air specific functionality using flex-mojos?
>
> My guess that that I will need to launch the adl application to run
> the tests, but not sure how I could configure this.

You will need to set the flexUnitCommand configuration variable to the
command you want to execute for your tests. You'll need to have an AIR
test runner I think. Then to run adl, I think it would look like this:
<configuration>
        <flexUnitCommand>
                <argument>---path to adl---</argument>
                <argument>---path to testrunner.xml AIR description 
file---</argument>
        </flexUnitCommand>
</configuration>

This URLs might help with an AIR test runner:
http://soenkerohde.com/2008/08/flexunit-with-air-ant/
http://thunderheadxpler.blogspot.com/2008/04/flexunit-ant-air.html

If you figure out a solution, share it or log an enhancement and we'll
see if we can integrate it into flex-mojos.

Logan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to