PIL Test Status Distribution
This metric returns the status of the processor-in-the-loop (PIL) test results. A PIL test can have a status of either:
Includes only tests in the project that test the model or subsystems in the unit for which you collect metric data.
Shows tests as untested if the test only ran in normal mode or software-in-the-loop (SIL) mode.
To collect data for this metric, use
getMetrics with the metric ID
Collecting data for this metric loads the model file and test result files 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.