Model Test Status Distribution
This metric returns a distribution of the status of the results of model tests that run on the unit. A model test can have a status of either:
This metric returns the result as a distribution of the results of the
Includes only simulation tests in the project that test the model or subsystems in the unit for which you collect metric data.
Does not count the status of tests that run in software-in-the-loop (SIL) or processor-in-the-loop (PIL) mode. The metric shows these tests as untested.
To collect data for this metric, use
getMetrics with the metric ID
Collecting data for this metric loads the model file and requires a Simulink® Test™ license.
For this metric, instances of
Value as a distribution structure that contains these fields:
BinCounts— The number of tests in each bin, returned as an integer vector.
BinEdges— The outputs of the test status metric, returned as an integer vector. The integer outputs represent the test result statuses:
0— The test failed.
1— The test passed.
2— The test is disabled.
3— The test is untested.
OverallCount— The total number of tests. The metric calculates
OverallCountas the sum of the integers in
Ratios— The ratio of a test result status to the total number of tests, returned as an integer vector that contains these elements:
Ratios(1)— Percentage of tests that failed.
Ratios(2)— Percentage of tests that passed.
Ratios(3)— Percentage of tests that are disabled.
Ratios(4)— Percentage of tests that are untested.
The percentages are in decimal form. For example, if 10% of unit tests passed and the remaining unit tests are untested,
Ratiosreturns an integer vector with the percentages in decimal form:
[0; 0.1000; 0; 0.9000].
The default compliance thresholds for this metric are:
Compliant— Each of the tests passed.
1or more tests are untested, disabled, or have failed.