工程和文件管理
针对版本控制工作流管理工程和文件
管理 Polyspace® 平台工程及其关联文件,以改进共享、重用以及与版本控制系统的集成。例如,您可以在称为测试套件的命名集合中整理图形化测试,或者创建工作区来分组和管理相关工程。
将配置和图形化测试等组件保存在单独文件中并通过引用关联到工程,对您的 Polyspace 平台工程进行模块化。您可以将 Polyspace 平台工程文件及其源文件和组件文件提交到版本控制,也可以仅提交源文件和工程组件文件,然后使用 Polyspace Python® API 从组件部分按需创建工程。
Polyspace 选项
工具
| Polyspace 平台设置 | Settings for Polyspace Platform user interface (自 R2023b 起) |
主题
工程结构
- 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. - 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. - 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.
工程和测试管理
- Update Projects in Polyspace Platform User Interface
Update source files in Polyspace Platform projects. - Update Tests in Polyspace Platform User Interface
Remap code under test and auto-update variables to latest type definitions. - 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. - Import and Export Graphical Tests
Import or export copies of a graphical test.
文件存储
- 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. - Submit Polyspace Files to Version Control
Learn which Polyspace files to submit to version control systems.