External test folders
Add external test folders to Polyspace Platform project
Since R2024a
Description
Add folders containing external C/C++ tests to a Polyspace Platform project or see external test folders explicitly added to the project. An external test is a test authored using a framework other than the Polyspace® Test API, for instance, GoogleTest.
Set Option
In your Polyspace Platform project configuration, enter folder paths for this option on the Project tab.
Why Use This Option
You typically need this option to see test folders explicitly added to a project.
In a regular workflow, you might be adding test folders using one of these methods:
Option Import Tests > Add External Test Folder on the Polyspace Platform toolstrip.
Right-click option Add External Test Folder on the root node of a Polyspace Platform project.
You see each test folder as a new row listed under the External test folder option. The test folder path is added relative to the project path. For more information, see Run GoogleTest Tests Using Polyspace Platform Projects.
You can also use this option to add test folders by absolute path, or to add test folders using a project or system environment variable. These features are not available when adding folders using the other methods.
Settings
You can add a test folder by absolute or relative path:
Select
to add the absolute path to a test folder.Select
to add a test folder relative to the project
path.
You can also edit an existing path. Editing an existing path is useful when you
use a project variable or a system environment variable as a shorthand in your paths. You can
first enter an absolute path using the
button and replace part of the path with a project variable
or system environment variable. For more information, see Project
variables.
To remove a test folder, select the corresponding row and click
.
Version History
Introduced in R2024a