CLion 2019.1 Help

Run/Debug Configuration: Google Test

Use this page to configure run/debug options for Google Test - a C++ testing framework.

Click here for the description of the options that are common for all run/debug configurations.

Configuration tab

Item

Description

Target

Choose the desired target from the list.

Target types are marked with the following icons:

All targets - All targets

Executable - Executable

Target library - Library

Test kind

  • Select the Suite/Test option to run a particular or all the tests of a suite.

  • Select Pattern option to run all the tests matching a particular pattern.

Suite

In this field, specify the name of a suite. This option is available only when the Suite/Test option is selected.

Test

From this drop down list, select the desired test. This option is available only when the Suite/Test option is selected.

Pattern

In this field, specify the pattern name. This option is available only when the Pattern option is selected.

Program arguments

In this field, type a list of arguments to be passed to the program in the format you would use in the command line. If necessary, click the the Expand button button and type the desired arguments.

Working directory

Specify the working directory to be used for running the application. This directory is the starting point for all relative input and output paths. By default, the field contains the directory where the project file resides. To specify another directory, click the Browse button and select the directory.

Expand the list to view available path variables that you can use as a path to your working directory. In this case you do not need to specify any additional environment variables in the Environment variables field.

Environment variables

Create environment variables and specify their values.

Last modified: 24 July 2019

See Also