Contenuto principale

Test Tag Distribution for Project

R2026b
Since R2026b

Metric ID

modeltesting.TestAnalysisOverview[project.TestTagDistribution]

Description

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

Use this metric to understand how tests are distributed across tag categories 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.TestTagDistribution]")

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 array with one entry for each tag category. Each structure has these fields:

  • BinEdge — Name of the tag category (for example, '-', '1_Draft', '2_Under_review', '3_Reviewed', '4_Released').

  • BinCount — Number of tests in the project with that tag.

See Also

Objects

Functions

Topics