addModelCoverage
Enable collect model coverage collection for Simulink tests
Syntax
addModelCoverage(runner)
addModelCoverage(runner,Name,Value)
Description
addModelCoverage(
enables the specified
test runner to add model coverage to MATLAB-based Simulink tests and generates a coverage
report. This method adds runner
)sltest.plugins.ModelCoveragePlugin
to the test
runner.
Note
For MATLAB-based Simulink tests, to include model coverage results in the Simulink Test
Manager, you must also use addSimulinkTestResults
.
addModelCoverage(
enables model coverage collection with additional options specified by one or more
runner
,Name,Value
)Name,Value
pair arguments.