| Simulink® Verification and Validation™ | ![]() |
Produce HTML report from model coverage objects in memory
cvhtml(file, cvdo) cvhtml(file, cvdo1, cvdo2,...) cvhtml(file, cvdo1, cvdo2,..., options) cvhtml(file, cvdo1, cvdo2,..., options, detail)
Use the cvhtml command to produce an HTML report from cv.cvdatagroup or cvdata objects you produce when you run a model coverage test in simulation.
Note The model must be open when using the cvhtml command to generate its coverage report. |
cvhtml(file, cvdo) creates an HTML report of the coverage results in the cvdata or cv.cvdatagroup object cvdo, which is written to the file file in the current MATLAB® directory.
cvhtml(file, cvdo1, cvdo2,...) creates a combined report of several cvdata objects. The results from each object are displayed in a separate column of the HTML report. Each cvdata object must correspond to the same root model or subsystem, or the function produces errors.
cvhtml(file, cvdo1, cvdo2,..., options) creates a combined report of several cvdata objects using the report options specified by the options string. The table in Report Options lists available options and their default settings. To enable an option, set it equal to 1 (e.g., '-hTR=1'); to disable an option, set it equal to 0 (e.g., '-bRG=0'). To specify multiple report options, list individual options in a single options string separated by commas or spaces (e.g., '-hTR=1 -bRG=0 -scm=0').
cvhtml(file, cvdo1, cvdo2,..., options, detail) creates a combined report of several cvdata objects and specifies the detail level of the report with the value of detail, an integer between 0 and 3. Greater numbers for detail indicate greater detail. The default value is 2.
The following table summarizes the report options that you can specify using cvhtml. See Settings for more information.
| Option | Description | Default Setting |
|---|---|---|
-aTS | Include each test in the model summary | on |
-bRG | Produce bar graphs in the model summary | on |
-bTC | Use two color bar graphs (red, blue) | off |
-hTR | Display hit/count ratio in the model summary | off |
-nFC | Do not report fully covered model objects | off |
-scm | Include cyclomatic complexity numbers in summary | on |
-bcm | Include cyclomatic complexity numbers in block details | on |
![]() | cvexit | cvload | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |