IntelliJ IDEA 14.0.0 Web Help

Testing ActionScript and Flex Applications

IntelliJ IDEA supports the versions 0.9 and 4 of FlexUnit, a unit testing framework for Flex and ActionScript applications and libraries.

For running FlexUnit tests, there is a dedicated run/debug configuration type (icon_flexunit FlexUnit).

The FlexUnit-specific tasks are briefly outlined below. For general instructions, see Testing.

Preparing for writing FlexUnit tests

  1. Download and decompress the archive containing FlexUnit libraries. (The corresponding archives (.zip) are available, for example, on the FlexUnit Downloads page. The archive name, normally, starts with flexunit.)

    The only file that you'll need is the core FlexUnit library (.swc). Depending on the FlexUnit version, this file may be called FlexUnit.swc, flexunit-4.0.0.swc, flexunit-4.1.0-8-as3_4.1.0.16076.swc, flexunit-core-flex-4.1.0-beta1.64-sdk4.0.0.14159.swc or something similar.

  2. Though this isn't really necessary, it might be useful to define the core FlexUnit library as a global or project library. This will let you use this library in many projects or modules. See Configuring Project and Global Libraries.
  3. Add the core FlexUnit library to dependencies of one or more of the build configurations. See Managing build configurations and their settings and Build Configuration Page for a Flash Module.
  4. Make one of these build configurations active. This will ensure that the code in your tests is highlighted properly. See Selecting an active build configuration.

Running or debugging FlexUnit tests

See Also


Language and Framework-Specific Guidelines:

Web Resources:

Last modified: 4 December 2014
comments powered by Disqus