Book Image

IntelliJ IDEA Essentials

By : Jaroslaw Krochmalski
Book Image

IntelliJ IDEA Essentials

By: Jaroslaw Krochmalski

Overview of this book

Table of Contents (17 chapters)
IntelliJ IDEA Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a run/debug configuration for the test


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