- To start creating the run/debug configuration, open the context menu for the item or items of interest
and select the appropriate Create command.
So, depending on what you want to create the run/debug configuration for, do one of the following:
- If you want to create the run/debug configuration for an individual test, or all tests in a directory or a package:
- Right-click the corresponding test class, directory or package in the Project tool window.
- Select the Create ... command from the context menu.
The command name depends on your current selection in the Project tool window and may look something like:
- Create "All Tests" for a source or test directory.
- Create "Tests in '<package_name>'" for a package.
- Create "<test_name>" for a test class.
- If you want to create the run/debug configuration for selected tests:
- Select the tests of interest in the Project tool window.
- Right-click one of the selected tests to open the context menu.
- In the context menu, select Create "<first_test_name> and <n> more".
- If you want to create the run/debug configuration for a test method:
- Open the test class containing the method of interest in the editor.
- To open the context menu, right-click somewhere within the method code.
- In the context menu, select Create "<method_name>()".
Note
A similar context menu command is available for the whole test class in the editor. To open the context menu for the class, right-click somewhere outside the area occupied by the code of the methods (for example, in the line containing the class declaration).
- If you want to create the run/debug configuration for an individual test, or all tests in a directory or a package:
- In the dialog that opens, specify the run/debug configuration parameters and click OK. For more information, see the corresponding dialog description for JUnit or TestNG.

