Component 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.ComponentTests
Description
This metric counts the number of component tests in the project. Component tests evaluate the component design, or a part of the design, in the same execution context of the component. These tests help assess the quality of the component.
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:
Aggregates the Component Tests metric results from the components in the project.
Only includes tests that directly contribute to the quality of component testing. Specifically, tests on:
Component models
Atomic subsystems
Atomic subsystem references
Atomic Stateflow® charts
Atomic MATLAB® Function blocks
Referenced models
Excludes tests on:
Libraries
Subsystem references
Virtual subsystems
Collection
Collecting data for this metric loads the model file and test result files and requires a Simulink® Test™ license.
Compliance Thresholds
This metric does not have predefined thresholds.