Specify test output file explicitly
Indicate that you want to specify output path of test execution explicitly
Since R2024b
Description
You can run external tests in a Polyspace® Platform project and review the test results, just as you would run and review results of tests authored using Polyspace Test™. Enabling this option allows you to specify a test output file path. When you open results of external tests, this path is used to locate the results.
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
The location of the test output file is needed to open the test results in the Polyspace Platform user interface. By default, you can let the external test handling manage the location of test output files. When specifying flags for Test output options, use the variable $(TESTOUTPUT) with a command-line flag so that the test output is generated in a predetermined location and can be opened from
this location.
However, some test authoring frameworks do not allow you to explicitly specify a test result path during test execution. In these cases, you can indicate where external test results are stored by following these steps:
Leave the option
Test output optionsempty.Enable this option.
Specify an output file path using the option
Test output file.
Even when a test authoring framework allows you to specify a test output path, you can force the test output to be generated in a specific location by following these steps:
Enter an appropriate command-line flag for the option
Test output optionsso that the test output is generated in a specific location.Enable this option.
Specify an output file path using the option
Test output file.
For more information on the full workflow, see Run External C/C++ Tests in Polyspace Platform User Interface.
Settings
OnYou want to specify the test output file explicitly. This setting requires that:
You specify a test output file path for the option
Test output file.You might also need to make sure that the output file is generated at the specified location by entering an appropriate command-line flag for
Test output options.
Off (default)You do not want to specify the test output file explicitly. This setting requires that you specify the variable
$(TESTOUTPUT)with a command-line flag for the optionTest output optionsso that the test output file is generated in a predetermined location.
Dependencies
This option is available only if you enable the option Use generic test framework.
Version History
Introduced in R2024b