In general, IntelliJ IDEA runs and debugs tests in the same way as every other application. The run/debug configuration setup is almost identical to the one we described in Chapter 5, Make It Happen – Running Your Project. When the run/debug configuration is created, IntelliJ IDEA passes the individual test classes or methods to the test runner.
The run/debug configuration can be shaped in a number of ways. The first method is to pick the Edit Configurations… option from the run configuration's drop-down menu, as shown in the following screenshot:
Now you can either click on the green plus icon or use the Alt + Insert (PC) or cmd + N (Mac) keyboard shortcut. From the list of available run/debug configuration templates, choose the desired test runner configuration as shown here:
A new unnamed configuration will be created (shown in the following screenshot) allowing you to specify more detailed settings:
The options will differ according to the...