My favorites | Sign in
Project Logo
                
Search
for
Updated Feb 13, 2009 by legrosb
Labels: Featured
ContinuousIntegration  
Considerations for using fluint in a CI build

Introduction

To execute a suite of tests using fluint via a continuous integration build, it is recommended that the fluint AIR runner is used. Currently, an Ant wrapper for the tool is available; Maven support is being worked on for the flex-mojos plugin, but as of this publishing, is not available.

Tools

AIR Runner Command Line

If the current Ant wrapper is not sufficient for your build's needs or you are not using Ant, the AIR runner can be called via the command-line by using the arguments below. Each argument should be prefixed with a single dash. For example:

./FluintAIRRunner -headless -failOnError -reportDir='/project/target/reports' -fileSet='/project/target/test-classes/AIRRunner.swf'

Arguments:

NOTE: All relative paths are taken from the directory in which the FluintAIRTestRunner application is executed.

fluint Ant Task

For more information on the Ant wrapper for the fluint AIR runner, see AntTasks.

Considerations

Although fluint provides facilities to interop with the continuous integration process, there a few considerations that should be taken into account for fluint's solution:

ExternalInterface

Previous


Comment by dewilhelm, Feb 17, 2009

I've compiled everything from source using SDK 3.2. When I try running the testModule.swf (either build myself or downloaded one) from the command line, the runner opens up, but does nothing, and hangs.Any ideas What might be the cause for this? Where can I see the logging statements?

Comment by dewilhelm, Feb 26, 2009

hey I got it all to work on the mac though :) will try again on linux.

Comment by charlie.hubbard, Jun 24, 2009

Is there any way to run Air unit tests from FlexBuilder? or my IDE easily while I'm coding?

Comment by caleb.winslow, Jun 25, 2009

@charlie.hubbard Yep, pretty easy to do.

This is assuming you have Flex Builder or Eclipse installed (I'm using Eclipse Ganymede for example). Locate the button marked as External Tools (right next to the run/debug/profile buttons). Click the drop down arrow on the button, and select External Tools Configuration. On the left side of the window that appears, right click on the option Program. Give your tool a name, such as Air Unit Test. Then, you will want to put something such as "C:\Program Files\FluintAIRTestRunner\FluintAIRTestRunner.exe" into the Location box. For the Working Directory box, use something such as "${workspace_loc:/PROJECTNAME/bin-debug}". Finally, in the larger Arguments box, put in the following:

-debug="true" -reportDir="${workspace_loc:/PROJECTNAME/bin-debug}" -fileSet="FILENAME_OF_YOUR_AIR_TEST_RUNNER_MODULE.swf"

Just make sure to change the PROJECTNAME and FILENAME_OF_YOUR_AIR_TEST_RUNNER_MODULE things in there, click apply, and then run. Note: You could put in variables that prompt you for the project or clean it up a little more, but that's a simple way above to do it.

Hope that helps!


Sign in to add a comment
Hosted by Google Code