Main Content

Test Execution Using Existing Toolchain Setup

Build tests written as C/C++ code using your own toolchain

If you author tests using the Polyspace® Test™ C/C++ xUnit API, you can build them in your own development environment using an existing toolchain setup.

You can then run the test executable, optionally adding command-line flags to change the default behavior. For instance, instead of executing all tests, you can execute tests in a specific suite only.

System Commands

polyspace-test -monitor(System Command) Monitor execution of C/C++ xUnit tests and retrieve test and code profiling results
polyspace-test -convert(System Command) Convert test or code profiling results to standard Polyspace Test format
polyspace-test -generate(System Command) Generate test registration function from a set of Polyspace Test C/C++ test files

CMake Functions

pstest_add_convert_target(CMake) Create target for converting test or code profiling results to standard Polyspace Test format
pstest_add_report_target(CMake) Generate XML and HTML reports from test or code profiling results

Topics

Test Execution

Test Results Format