工程和文件管理
R2026b针对版本控制工作流管理工程和文件
管理 Polyspace® 平台工程及其关联文件,以改进共享、重用以及与版本控制系统的集成。例如,您可以在称为测试套件的命名集合中整理图形化测试,或者创建工作区来分组和管理相关工程。
将配置和图形化测试等组件保存在单独文件中并通过引用关联到工程,对您的 Polyspace 平台工程进行模块化。您可以将 Polyspace 平台工程文件及其源文件和组件文件提交到版本控制,也可以仅提交源文件和工程组件文件,然后使用 Polyspace Python® API 从组件部分按需创建工程。
系统命令
Polyspace 选项
工具
| Polyspace 平台设置 | Settings for Polyspace Platform user interface (自 R2023b 起) |
| 测试用例 | Author graphical tests in the Polyspace Platform user interface (自 R2023b 起) |
主题
对工程进行模块化处理
- Modularize Project by Using External Configurations, Test References, and External Stub Files
Separate your Polyspace Platform project into multiple files to improve sharing and version control workflows. - Import and Export Graphical Tests
Import or export copies of a graphical test. - Modularize Existing Project by Using Polyspace Python API
Use Python scripts to modularize existing projects by converting configurations and graphical tests to files referenced by the project. - Create Project Dynamically by Using Polyspace Python API
Use Python scripts to dynamically generate projects from sources, configurations, and tests.
整理工程和测试
- Manage Related Projects in Polyspace Platform User Interface Using Workspaces
Create workspace from open projects, add projects to workspace, save workspace. - Organize Graphical Tests in Polyspace Platform Project Using Test Suites
Create test suites, move tests into suites, and run an individual test suite.
更新工程和测试
- Update Projects in Polyspace Platform User Interface
Update source files in Polyspace Platform projects. - Update Tests in Polyspace Platform User Interface
Update one or more tabular test steps to account for source code changes, including function remapping and type definition updates.
在版本控制中管理文件
- 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. - Submit Polyspace Files to Version Control
Learn which Polyspace files to submit to version control systems. - Compare and Merge Polyspace Platform Projects and Configurations Before Submission to Source Control
Compare Polyspace Platform projects (.psprjxfiles) with version in repository, and resolve conflicts in sources, configurations, or tests in project. - Artifacts and Results Generated by Polyspace Platform Projects
Learn about the files Polyspace generates when you build a project or run static analysis or tests.