IntelliJ IDEA 2018.2 Help

Run/Debug Configuration: FlexUnit

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

Item

Description

Name

Use this field to edit the name of the run/debug configuration.

Share

Select this checkbox to share the run configuration through version control.

If the checkbox is not selected, the run configuration settings are stored in .idea/workspace.xml or the .iws file.

If the checkbox is selected, the settings are stored in a separate .xml file in .idea/runConfigurations or in the .ipr file.

See Working with projects.

Single instance only

If you select this checkbox, only one instance of the run configuration will run at a time.

Build configuration

Select 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.

Test

Select 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+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+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+Enter) to select the desired class and method in the Choose Test Class and the Choose Test Method dialogs.

Show test log output

If you want the test log to be output, select this checkbox and select the logging level from the list.

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

Launch with

For 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 sandbox

For Web build configurations: select this checkbox 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 options

Specify which tasks should be carried out before starting the run/debug configuration. The specified tasks are performed in the order that they appear in the list.

Item

Shortcut

Description

icons general add svg

Alt+Insert

Click this icon to add a task to the list. Select the task to be added:
  • Run External tool. Select this option to run an application which is external to IntelliJ IDEA. In the dialog that opens, select the application or applications that should be run. If the necessary application is not defined in IntelliJ IDEA yet, add its definition. For more information, see Configuring Third-Party Tools and External Tools.

  • Make. Select this option to have the project or module compiled. The Make Module command will be carried out if a particular module is specified in the run/debug configuration, and the Make Project command otherwise.

    If an error occurs during the compilation, IntelliJ IDEA won't attempt to start the run/debug configuration.

  • Make, no error check. The same as the Make option but IntelliJ IDEA will try to start the run/debug configuration irrespective of the compilation result.

  • Build Artifacts. Select this option to have an artifact or artifacts built. In the dialog that opens, select the artifact or artifacts that should be built.

    See also, Working with Artifacts.

  • Run Another Configuration. Select this option to have another run/debug configuration executed. In the dialog that opens, select the configuration to be run.

    This option is available only if you have already at least one run/debug configuration in the current project.

  • Run Ant target. Select this option to have an Ant target run. In the dialog that opens, select the target to be run. For more information, see Ant.

  • Generate CoffeeScript Source Maps. Select this option to have the source maps for your CoffeeScript sources generated. In the dialog that opens, specify where your CoffeeScript source files are located.

    For more information, see CoffeeScript.

  • Run Maven Goal. Select this option to have a Maven goal run. In the dialog that opens, select the goal to be run.

    For more information, see Maven.

icons general remove svg

Alt+Delete

Click this icon to remove the selected task from the list.

icons actions edit svg

Enter

Click this icon to edit the selected task. Make the necessary changes in the dialog that opens.

icons actions previousOccurence svg

Alt+Up

Click this icon to move the selected task one line up in the list.

icons actions nextOccurence svg

Alt+Down

Click this icon to move the selected task one line down in the list.

Show this page

Select this checkbox to have the run/debug configuration settings shown prior to actually starting the run/debug configuration.

Toolbar

Item

Description

icons general add svg or Insert

Use this icon or shortcut to create a new run/debug configuration.

icons general remove svg or Delete

Use this icon or shortcut to delete the selected run/debug configuration.

icons actions copy svg or Ctrl+D

Use this icon or shortcut to create a copy of the selected run/debug configuration.

icons general settings svg

Click this button to edit the default settings for run/debug configurations.

icons actions previousOccurence svg icons actions nextOccurence svg

Use 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.

Last modified: 20 November 2018

See Also