IntelliJ IDEA 12.1.0 Web Help

Some features described here are available in Ultimate edition only.

Use this dialog to create or edit FlexUnit run/debug configurations which let you run or debug your FlexUnit tests.

Note that this run/debug configuration type cannot be used for running or debugging the tests on mobile devices. To run or debug the tests intended for mobile devices, you should use a built-in device emulator.

Main settings

ItemDescription
NameUse this field to edit the name of the run/debug configuration.
Build configurationSelect the build configuration to be used.

Note that the corresponding build configuration should have a core FlexUnit library among its dependencies, see Testing ActionScript and Flex Applications.

TestSelect the test scope and specify the associated settings:
  • All in Package. Select this option to run all tests in a certain package. Specify the qualified package name in the Package and Method fields respectively.

    Use browseButton (Shift+EnterShift Enter) to select the desired package in the Choose Package and the Choose Test Method dialogs.

    To run all tests in all the packages of a module, leave the Package field empty.

  • Class or suite. Select this option to run a test class or suite. Specify the fully qualified name of the test class in the Class and Method fields respectively.

    Use browseButton (Shift+EnterShift Enter) to select the desired class in the Choose Test Class and the Choose Test Method dialogs.

    To run all tests in all the packages of a module, leave the Package field empty.

  • Method. Select this option to run a test method. Specify the fully qualified name of the test class and the method name in the Class and Method fields respectively.

    Use browseButton (Shift+EnterShift Enter) to select the desired class and method in the Choose Test Class and the Choose Test Method dialogs.

Show test log outputIf you want the test log to be output, select this check box and select the logging level from the list.

Note that a standard logger from the mx.logging package will be used.

Launch withFor Web build configurations: specify the program to be used for running your test. You can use:
  • The system default application, that is, the program associated with the target file type (HTML or SWF) in the operating system. Usually, this is a Web browser. For SWF files, this may also be a stand-alone Flash player.
  • A Web browser.
  • A Flash player.

To select the required program, click browseButton to the right of the Launch with field, and then specify the program in the Launch With dialog:

  • To select the system default application, just click System default application.
  • To select the browser, click Browser and select the required browser from the list.

    Additionally, you can access the Web Browsers dialog to adjust Web browser settings. To open this dialog, use browseButton next to the list.

  • To select the Flash player, click Flash Player and then click browseButton next to the Flash Player field. Then, specify the location of the required Flash player in the dialog that opens.
Place SWF file in a local-trusted sandboxFor Web build configurations: select this check box if you want to register your test SWF file as trusted.

Trusted SWF files can interact with any other SWF files. They can load data from anywhere, remote or local.

Technically, trusted SWF files are assigned to the local-trusted sandbox.

Before Launch configuration options

ItemDescription
Before Launch Specify which activities should be performed before starting the run/debug configuration:
  • Make. If this check box is selected, the project is compiled automatically prior to running or debugging. This option helps you ensure that all changes are included and compiled.
  • Build Artifacts. If this check box is selected, the specified artifacts will be built prior to running or debugging. To define the artifacts to be built, click browseButton and select the desired artifacts.
  • Run Ant target. If this check box is selected, the specified Ant target will be built prior to running or debugging. To define the Ant target, click browseButton and select the desired target.

    To learn more about Ant support, refer to the Ant Support section.

  • Run Maven goal. If this check box is selected, the specified Maven goal will be executed prior to running or debugging. To define the Maven goal to be executed, click browseButton and select the desired goal.

    To learn more about Maven support, refer to the Maven Support section.

  • Show settings. Select this check box if you want the Run/Debug Configurations dialog to be shown every time you launch this run/debug configuration.

Note

The Before Launch actions are performed in the order they appear in the Run/Debug Configurations dialog. Thus, the artifacts are built before running the Ant targets, etc.

Toolbar

ItemDescription
add (InsertInsert)Use this icon or shortcut to create a new run/debug configuration.
delete (DeleteDelete)Use this icon or shortcut to delete the selected run/debug configuration.
copy (Ctrl+DCtrl+D)Use this icon or shortcut to create a copy of the selected run/debug configuration.
settingsClick this button to edit the default settings for run/debug configurations.
arrowUp arrowDownUse these buttons to move the selected run/debug configuration up and down in the list.

The order of configurations in the list defines the order in which the configurations appear in the corresponding list on the main toolbar.

See Also

Concepts:

Procedures:

Language and Framework-Specific Guidelines:

Reference:

Web Resources: