polyspace-test -build
(System Command) Build sources and tests in a Polyspace Platform project
Since R2023b
Syntax
Description
The system command polyspace-test -build builds the sources and tests in a Polyspace® Platform project.
polyspace-test -build builds the sources and tests in a Polyspace Platform project file -project <projectFile> [options]<projectFile>.
polyspace-test -build builds the sources and tests in -project <projectFile> -profiling-mode coverage [-cov-metric-level <coverageLevel>] [options]<projectFile> for code coverage calculation. When you run the tests later, besides test results, code coverage results are also generated.
polyspace-test -build builds the sources and tests in -project <projectFile> -profiling-mode execution-profile [options]<projectFile> for execution profiling. When you run the tests later, besides test results, results on execution time are also generated.
polyspace-test -build builds the sources and tests in -project <projectFile> -profiling-mode stack-profile [options]<projectFile> for memory profiling. When you run the tests later, besides test results, results on memory use are also generated.
polyspace-test -build builds the sources and tests in -project <projectFile> -profiling-mode sanitizer [options]<projectFile> for code sanitizer profiling. When you run the tests later, run-time errors that were caught by the sanitizer are reported as test failures. In addition, a sanitizer profiling results set is generated to show expressions that were instrumented for sanitizer
profiling.
polyspace-test -build builds the sources and tests in -project <projectFile> -enable-debugger [options]<projectFile> in debug mode. In this mode, breakpoints are associated with specific places in the test code before the test code is built. Later, when you run tests in the project, instead of normal execution, the tests open in a debugger at those breakpoints. For more information on
supported debuggers, see Debug Test Failures from Polyspace Platform User Interface.
polyspace-test -build builds a project using the options specified in -options-file <optionsFile><optionsFile>.
Examples
Input Arguments
Version History
Introduced in R2023b