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 check box to share the run configuration through version control. If the check box is not selected, the run configuration settings are stored in .idea/workspace.xml or the .iws file. If the check box is selected, the settings are stored in a separate .xml file in .idea/runConfigurations or in the .ipr file. See Project format and files. |
Single instance only | If you select this check box, 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 (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 (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 (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 check box 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 to the right of the Launch with field, and then specify the program in the Launch With dialog: |
Place SWF file in a local-trusted sandbox | For 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 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 |
---|
| 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 Support. - 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. |
| Alt+Delete | Click this icon to remove the selected task from the list. |
| Enter | Click this icon to edit the selected task. Make the necessary changes in the dialog that opens. |
| Alt+Up | Click this icon to move the selected task one line up in the list. |
| Alt+Down | Click this icon to move the selected task one line down in the list. |
Show this page | | Select this check box to have the run/debug configuration settings shown prior to actually starting the run/debug configuration. |
Toolbar
Language and Framework-Specific Guidelines:
Last modified: 18 July 2017