工程创建
创建并配置用于测试的工程
在开始使用 Polyspace® Test™ 编写测试之前,您必须先创建工程、添加源代码并指定受支持的编译器。您可以通过以下方式创建工程:
通过显式将源代码添加到工程中,然后配置编译选项(例如包含路径和定义)来手动创建工程。
使用编译命令自动创建工程。
Polyspace 选项
工具
| Polyspace 平台设置 | Settings for Polyspace Platform user interface (自 R2023b 起) |
主题
创建工程
- Create Project and Add Source Files in Polyspace Platform User Interface
Add source files using your build command or manually. - Create Easily Shareable Projects for Version Control
Create projects that are easy to share and submit to version control by using relative paths, variables, and a modular project structure.
配置工程
- Configure Project for Testing in Polyspace Platform User Interface
Specify targets and build information to build and run tests. - 在 Polyspace 平台用户界面中指定用于测试的 C/C++ 编译器
指定支持的编译器以进行初始代码分析和测试编译。