Contenu principal

Test Type Distribution for Project

R2026b
Since R2026b

Metric ID

modeltesting.TestAnalysisOverview[project.TestTypeDistribution]

Description

This metric returns the distribution of tests in the project grouped by test type. Each test type category reports the number of tests of that type.

Use this metric to understand how tests are distributed across test types (simulation, equivalence, and baseline) in the project.

Supported Artifacts

This metric collects results at the project level.

Collection

To collect data for this metric, execute the metric engine with the metric ID.

metric_engine = metric.Engine;
results = execute(metric_engine,"modeltesting.TestAnalysisOverview[project.TestTypeDistribution]")

View the metric result values.

results.Value

To collect all metrics in the modeltesting.TestAnalysisOverview group at once, use the group name with empty brackets. Use the MetricID property to distinguish results from different metrics in the group.

results = execute(metric_engine,"modeltesting.TestAnalysisOverview[]")

Results

The metric returns a single metric.Result object for the project.

The Value property returns a structure with these fields:

  • Simulation — Number of simulation tests in the project.

  • Equivalence — Number of equivalence tests in the project.

  • Baseline — Number of baseline tests in the project.

See Also

Objects

Functions

Topics