Package: sltest.plugins
Collect model coverage using the MATLAB Unit Test framework
The sltest.plugins.ModelCoveragePlugin
creates coverage reports and
allows setting coverage metrics for running Simulink®
Test™ and MATLAB®-based Simulink test cases with the MATLAB Unit Test framework. Set desired
sltest.plugins.ModelCoveragePlugin
property values, and add the
instance of the sltest.plugins.ModelCoveragePlugin
to the test
runner. For MATLAB-based Simulink tests, calls to the simulate
method collect coverage during the test run. These coverage results are available in the
Test Manager results.
creates a model coverage plugin object mcp
= sltest.plugins.ModelCoveragePlugin(Properties
)mcp
with specified
properties.
You can also import the plugin, then use the class name to create an instance of the plugin:
import sltest.plugins.ModelCoveragePlugin mcp = ModelCoveragePlugin(Properties)
sltest.plugins.coverage.CoverageMetrics
| sltest.plugins.coverage.ModelCoverageReport
| sltest.plugins.MATLABTestCaseIntegrationPlugin
| sltest.plugins.ToTestManagerLog