主要内容

测试生成

R2026b
使用 Polyspace® Copilot 为边界值、覆盖率目标或功能需求生成测试

在 Polyspace 平台用户界面中,您可以自动生成与特定目标相关的测试输入。例如,您可以生成使用输入的边界值调用函数的测试,或生成覆盖了函数中所有条件的 true 或 false 结果的测试(全条件覆盖)。

您还可以使用 Polyspace Copilot 生成功能测试来验证功能需求。

系统命令

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 Copilot 生成功能测试

使用 Requirements Toolbox 从需求生成测试