Requirements Condition Coverage Fragment
This metric returns the fraction of overall achieved condition coverage that comes from requirements-based tests.
The metric does not analyze coverage from tests that run in software-in-the-loop (SIL) or processor-in-the-loop (PIL) mode.
To collect data for this metric:
In the Model Testing Dashboard, in the Achieved Coverage Ratio section, point to the widget for Requirements-Based Tests, point to the three dots, and click the run button.
getMetricswith the metric ID
Collecting data for this metric loads the model file and test results files and requires a Simulink® Coverage™ license.
For this metric, instances of
metric.Result return the
Value as a structure that contains these fields:
Numerator— The number of requirements-based tests that contribute to the overall achieved condition coverage.
Denominator— The total number of tests (requirements-based and non-requirements-based) that contribute to the overall achieved condition coverage.
This metric does not have predefined thresholds.