Using Simulink    

Creating and Running Test Cases

The Test Coverage Tool provides two MATLAB commands, cvtest and cvsim, for creating and running test cases. The cvtest command creates test cases to be run by the cvsim command (see cvsim and cvtest).

You can also run the coverage tool interactively. To do so, select Coverage Settings from the Simulink Tools menu. Simulink displays the Coverage Settings dialog box (see Coverage Settings Dialog Box). Check Enable Coverage Reporting and select OK to dismiss the dialog. Then select Start from the Simulation menu or the start button on the Simulink toolbar.

By default, Simulink saves the data as a workspace object named covdata and displays the data as an HTML report at the end of the simulation run. You can select other options for generating, saving, and reporting coverage data. See the Coverage Settings Dialog Box for more information.


 How the Model Coverage Tool Works The Coverage Report