Requirements with Tests in Project
Note
Starting in R2026a, the Project Model Testing dashboard
no longer uses or displays this metric. This metric ID
will be removed in a future release. To view project metric results, use the widgets in the
Project Model Testing dashboard as shown in Summarize Status of Testing for Project. You can continue to
access model testing metrics using the metric.Engine APIs.
Metric ID
project.mt.ComponentRequirementWithTestAverage
Description
This metric determines if each component requirement in the project is linked to at least one test. The metric returns the average percentage of implemented functional requirements in the project that link to component tests.
Supported Artifacts
This metric collects metric results for Units in the project. To control what the dashboard classifies as a unit, see Categorize Models in Hierarchy as Components or Units.
Computation Details
The metric calculates the average by using the Requirements with Tests Distribution metric results from the components in the project.
Collection
Collecting data for this metric loads the model file and requires a Requirements Toolbox™ license.
Compliance Thresholds
This metric does not have predefined thresholds.