Unit Boundary MCDC Coverage Fragment
Metric ID
UnitBoundaryMCDCCoverageFragment
Description
This metric returns the fraction of overall achieved MC/DC coverage that comes from unit-boundary tests.
Supported Artifacts
You can collect this metric for the Units in your project. To control what the dashboard classifies as a unit, see Categorize Models in Hierarchy as Components or Units.
Computation Details
The metric does not analyze coverage from tests that run in software-in-the-loop (SIL) or processor-in-the-loop (PIL) mode.
Collection
To collect data for this metric:
In the Model Testing Dashboard, in the Achieved Coverage Ratio section, point to the widget for Unit-Boundary Tests, point to the three dots, and click the run button.
Use
getMetricswith the metric IDUnitBoundaryMCDCCoverageFragment.
Collecting data for this metric loads the model file and test results files and requires a Simulink® Coverage™ license.
Results
For this metric, instances of metric.Result return the
Value as a structure that contains these fields:
Numerator— The number of unit-boundary tests that contribute to the overall achieved MC/DC coverage.Denominator— The total number of tests (unit-boundary and non-unit-boundary) that contribute to the overall achieved MC/DC coverage.
Compliance Thresholds
This metric does not have predefined thresholds.
See Also
Model Testing Metrics | Unit Boundary Execution Coverage Fragment | Unit Boundary Decision Coverage Fragment | Unit Boundary Condition Coverage Fragment