Main Content

Build and Test Automation

R2026b
Build and run tests using a previously prepared Polyspace® Platform project

Prepare a Polyspace Platform project in the user interface, then build and run tests programmatically:

polyspace-test -build myproject.psprjx -results-dir results
polyspace-test -run myproject.psprjx -results-dir results

For CI server workflows, see Build and Test Automation on Servers.

System Commands

expand all

polyspace-project -diff, polyspace-project -merge(System Command) Compare and merge Polyspace Platform projects, workspaces, configurations and tests before submission to source control
polyspace-test -build(System Command) Build sources and tests in a Polyspace Platform project
polyspace-test -run(System Command) Run tests in a Polyspace Platform project
polyspace-test -monitor(System Command) Monitor execution of C/C++ xUnit tests and retrieve test and code profiling results
polyspace-test -generate-tests(System Command) Generate C/C++ unit tests automatically in a Polyspace Platform project
polyspace-test -create-testgen-config(System Command) Create a default configuration file for automatic test generation in a Polyspace Platform project
polyspace-test -report(System Command) Generate reports from test or code profiling results
polyspace-test -convert(System Command) Convert test or code profiling results to standard Polyspace Test format
polyspace-test -merge(System Command) Create a single test or code profiling result set from multiple result sets
polyspace-test -manage-host-compiler(System Command) List or select host compilers for Polyspace Platform project build
polyspace-test -manage-target-package(System Command) Register, list, configure or otherwise manage target packages for test execution or code profiling on targets
polyspace-test -check-target-package(System Command) Check connection to target before test execution
polyspace-test -manage-addon(System Command) Install or list add-ons for use with Polyspace Test
polyspace-test -generate(System Command) Generate test registration function from a set of Polyspace Test C/C++ test files
polyspace-test -version(System Command) Display Polyspace Test version

Topics

Source Control of Polyspace Platform Projects

Build and Test Automation

Testing on Targets