分析覆盖率并查看结果
您可以使用 Simulink® Coverage™ 计算覆盖率数据,以查找测试中的缺失或设计中的问题。您可以将普通模式仿真的覆盖率结果与软件在环、处理器在环或硬件在环仿真生成的代码结果进行比较。
覆盖率报告和模型突出显示可帮助您了解测试用例充分执行了设计的哪些部分。对于聚合测试结果,您还可以查看每个对应测试如何影响覆盖率结果。
函数
cvhtml | Create HTML coverage report from model coverage objects |
cvmodelview | Display model coverage results with model highlighting |
主题
- Top-Level Model Coverage Report
Learn about the sections of a model coverage report the software creates for the top-level model.
- View Coverage Results in Simulink Canvas
Highlight model elements in the Simulink Canvas to view coverage results.
- Types of Coverage Reports
Simulink Coverage can create one or more model coverage reports after a simulation.
- Trace Coverage Results to Associated Test Cases
View system test coverage achieved from unit tests in the Aggregated Tests section of the coverage report.
- Trace Coverage Results to Requirements
View requirements traceability in Simulink Coverage reports using Simulink Test™.
- Assess Coverage Results from Requirements-Based Tests
Assess extent to which requirements-based tests exercise the corresponding design.
- Create and Run Back-to-Back Tests Using Enhanced MCDC (Simulink Design Verifier)
Create back-to-back tests using enhanced MCDC in Test Manager.
- Export Model Coverage Web View
Export a Model Coverage Web View.
- Model Coverage Reports for MATLAB Functions
Read and interpret coverage results for a MATLAB Function block.
- Code Coverage Report
Learn about the sections of a code coverage report.