主要内容

使用现有工具链设置执行测试

使用您自己的工具链编译以 C/C++ 代码编写的测试

如果您使用 Polyspace® Test™ C/C++ xUnit API 编写测试,则可以使用现有工具链设置在您自己的开发环境中编译这些测试。

然后,您可以运行测试可执行文件,视需要添加命令行标志来更改默认行为。例如,您可以仅执行特定套件中的测试,而不是执行所有测试。

系统命令

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 函数

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

主题

测试执行

测试结果格式