Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

  1. Download Apache Ant 1.7.1 or higher from http://ant.apache.org/bindownload.cgiImage Removed.
  2. Extract the compressed file (e.g. - zip, tarball, etc) to a location on your computer, preferably without spaces in the path.
  3. Append the <install dir>/bin directory on your computer's PATH environment variable.
  4. Create an environment variable named ANT_OPTS with the following values to increase the JVM's heap boundaries and perm gen space to be more friendly to Flex/Flash builds: -XX:MaxPermSize=128M -Xms128M -Xmx512M

Setup your environment

  1. Download the Flex SDK @ http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3Image Removed and extract it to a folder on your computer.
  2. If you are using Linux and wish to use the ADL support to execute your test suite(s), download the AIR SDK for Linux @ http://www.adobe.com/cfusion/entitlement/index.cfm?e=airsdkImage Removed and extract the bundle on top of Flex SDK so the FlexUnit Ant task may use it correctly.
  3. Create an environment variable named FLEX_HOME with the value of the absolute path to the directory in which the Flex SDK was extracted.
  4. Download the stand alone debugger Flash Player for your platform @ http://www.adobe.com/support/flashplayer/downloads.htmlImage Removed and install the player. If running on Linux, be sure to create a symlink to the executable with the name gflashplayer which is in a directory available on PATH environment variable.
  5. If not running on Linux, associate the mime-type for SWF files with the stand-alone debugger Flash Player. If done correctly, opening a SWF file directly (e.g. - double-clicking the file) should cause it to open in the stand-alone player.

...

  1. Download the latest FlexUnit4 source code bundle @ http://github.com/flexunit/flexunit/zipball/masterImage Removed.
  2. Extract the FlexUnit4SampleCIProject from the bundle into a location you'd like to use for your project.
  3. Delete all folders and files under the <project dir>/src/main/flex and <project dir>/src/test/flex locations as well as the pom.xml file since this is a Maven build file.
  4. Place any source code under <project dir>/src/main/flex and your test code under <project dir>/src/test/flex. '''Please note,''' you don't have to use these folder locations, the included build scripts are just setup to work without edits with these paths.
  5. Sample build scripts are provided within the template as files beginning with the prefix build. There is a sample for using the stand-alone Flash Player and ADL to execute your test suite(s). These build scripts are just suggestions, there are many different ways to write an Ant build script, these samples are solely intended to present Ant in a simple manner.
  6. When in doubt on how to organize your project or which build script to use, check out the comments in all of the build files as well as the README.txt file which comes with the FlexUnit4SampleCIProject.

...

During the setup process, if things don't work out as expected, please don't hesitate to ask us for help on the FlexUnit forums @ http://forums.adobe.com/community/opensource/flexunit/generalImage Removed. We generally respond within a few hours, if not immediately, and are more than happy to help.

...

The Ant task has support to execute a test SWF under a headless environment for Linux platforms with Xvnc support. Currently there is no built in support for executing a test run headlessly on Windows although this is possible; see the Continuous Integration Support page for more details. The current support is a port of the Xvnc Hudson Plugin found at http://wiki.hudson-ci.org/display/HUDSON/Xvnc+PluginImage Removed. By marking headless="true", the task will attempt to do the following to supplement the execution of the test SWF:

...