主要内容

Additional options

Specify command-line flags for external test execution (except flags for test output path)

Since R2024b

Description

Enter command line flags that you use with your C/C++ external tests, for instance, flags to run a specific suite of tests. When you run external tests in the current Polyspace® Platform project, these flags are appended to the test executable.

Do not use this option for command-line flags that specify the test results file. Instead, use Test output options.

Set Option

In your Polyspace Platform project configuration, on the Project tab, select the External Tests node and then enter command-line flags for this option.

Why Use This Option

Use this option to emulate your command-line execution of external tests. External tests are tests written using a test authoring framework other than Polyspace Test™, for instance, GoogleTest.

For more information on the full workflow, see Run External C/C++ Tests in Polyspace Platform User Interface.

Settings

Enter the command line flags that you use when executing your external tests.

For instance, if you are running GoogleTest tests, you can enter the following GoogleTest flag to run a specific suite of tests:

--gtest_filter="my_suite"

Dependencies

This option is available only if you select one of these options:

Version History

Introduced in R2024b