addModelCoverage
Enable model coverage collection for Simulink tests
Syntax
addModelCoverage(runner)
addModelCoverage(runner,covformat,location)
addModelCoverage(___,Name,Value)
Description
addModelCoverage(
enables the specified
test runner to add model coverage to MATLAB-based Simulink tests and generates a coverage
report. The coverage format defaults to runner
)html-report
. This method adds
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 using the specified coverage format and saves the report in
the specified location.runner
,covformat
,location
)
addModelCoverage(___,
enables model coverage collection with additional options specified by one or more
Name,Value
)Name,Value
pair arguments. If you specify the coverage format, it must
be positioned just before the Name,Value
pair arguments.
Input Arguments
Examples
Version History
Introduced in R2021a