addModelCoverage
Syntax
task = addModelCoverage(task,results)
task = addModelCoverage(___,Name=Value)
Description
task = addModelCoverage(
enables the test task specified by task,results)task to produce the coverage results
in the specified model coverage results file. You must have a Simulink®
Coverage™ license to use the addModelCoverage method.
addModelCoverage is a method of the matlab.buildtool.tasks.TestTask class.
To use addModelCoverage, use a single command to create the
TestTask and add the model coverage. When you create the matlab.buildtool.tasks.TestTask instance, specify the Simulink
Test™ or MATLAB®-based Simulink tests. For example,
task = TestTask("myTestFolder").addModelCoverage...
("model-coverage/report.html", CoverageMetrics=...
["MCDC","SignalRange"]);
task = addModelCoverage(___,Name=Value) enables model
coverage collection with additional options specified by one or more
Name,Value pair arguments.