主要内容

编译和测试自动化

R2026b
使用之前准备的 Polyspace® 平台工程编译和运行测试

在用户界面中准备一个 Polyspace 平台工程,然后以编程方式编译和运行测试:

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

有关 CI 服务器工作流,请参阅服务器上的编译和测试自动化。

系统命令

全部展开

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(系统命令)显示 Polyspace Test 版本

主题

Polyspace 平台工程的源代码管理

编译和测试自动化

在目标上运行测试