自动覆盖工作流程
Model coverage commands let you automate the entire model coverage process with MATLAB®scripts. You can use model coverage commands to set up model coverage tests, execute them in simulation, and store and report the results.
Functions
Classes
Topics
Create a test object that specifies the model or part of the model tested.
Execute (simulate) the test object. This creates a results object for the test object.
Create HTML Reports with cvhtml
为结果对象创建报告。
Save Test Runs to File with cvsave
Save the test object and its results object in a file.
Load Stored Coverage Test Results with cvload
Load the file containing test and results objects to create new reports of model coverage data.
Retrieve Coverage Details from Results
Retrieve specific coverage information after simulation using MATLAB commands.
Use Coverage Commands in a Script
演示如何使用模型覆盖命令的示例脚本。
Creating and Executing Test Cases
此示例显示了如何使用Simulink®Coverage™组件金宝app验证功能来记录输入信号,创建线束模型和执行测试用例。
Command Line Verification Tutorial
This example creates three test cases for an adjustable rate limiter and analyzes the resulting model coverage using the command-line API of the Model Coverage tool.
记录覆盖范围in Parallel Simulations by Using Parsim
This example shows how to record coverage in multiple parallel Simulink® simulations corresponding to different test cases by using SimulationInput objects and theparsim
command.