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). Select 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 coverage data for the current run in the workspace object covdata and cumulative coverage data in covCumulativeData. This data is appears in an HTML report at the end of simulation.You can select other options for generating, saving, and reporting coverage data. See the Coverage Settings Dialog Box for more information.


  Model Coverage Tool The Coverage Report