Use GoogleTest with non-default options
Enable support for GoogleTest tests that require additional flags for test execution
Since R2024b
Description
Enable support for running GoogleTest tests in the current Polyspace® Platform project. Extend the default GoogleTest support by allowing additional command-line flags with the test executable.
Set Option
In your Polyspace Platform project configuration, on the Project tab, select the External Tests node and then select this option.
Why Use This Option
By default, you can import GoogleTest tests into a Polyspace Platform project and run them along with tests authored using Polyspace
Test™. For more information, see Use GoogleTest.
When you run the tests, the test executable is run with a default set of command-line flags. If you want to append additional command-line flags to the test executable, select this option and then specify the command-line flags.
For more information on the full workflow, see:
Settings
OnWhen you run GoogleTest tests imported in a Polyspace Platform project, the command-line flags specified using these options are appended to the test executable:
Off (default)Disabling this option means that you have selected one of these options:
Use GoogleTest: This option is selected by default and enables the default support for GoogleTest tests.Use generic test framework: This option enables support for any testing framework.However, you have to explicitly specify command-line flags to append to the test executable and convert your test results from their current format to a format supported with Polyspace Test.
Version History
Introduced in R2024b