sltest.plugins.coverage.ModelCoverageReport class
Package: sltest.plugins.coverage
Superclasses: matlab.mixin.Heterogeneous
Specify model coverage report details for tests run with MATLAB Unit Test
Description
Use the sltest.plugins.coverage.ModelCoverageReport
class to specify
coverage report details and file location for tests run with the MATLAB® Unit Test framework. If you have a license for Parallel Computing Toolbox™, you can use the ModelCoverageReport
with parallel test
execution.
The sltest.plugins.coverage.ModelCoverageReport
class is a handle
class.
Creation
creates a model coverage report created after the test runs. The input
mcr
= sltest.plugins.coverage.ModelCoverageReport(path
)path
specifies where the report is saved.
You can also import the plugin, then use the class name to create the object:
import sltest.plugins.coverage.ModelCoverageReport
mcr = ModelCoverageReport(path)
Use ModelCoveragePlugin
to specify report properties before you run the test:
Create a
ModelCoverageReport
.Create a
ModelCoveragePlugin
, and specify theModelCoverageReport
by using theProducing
property.Add the
ModelCoveragePlugin
to theTestRunner
.Run the test.
Examples
Version History
Introduced in R2018b