Code Testing Metrics
The SIL Code Testing and PIL Code Testing dashboards collect metric data from the code testing artifacts in a project. Use the metric data to assess the status and quality of your code testing. Each metric in the dashboards measures a different aspect of the quality of the testing of your code and reflects guidelines in industry-recognized software development standards, such as ISO 26262 and DO-178C. Use the widgets in the SIL Code Testing and PIL Code Testing dashboards to see testing gaps and missing coverage, as described in View Status of Code Testing Activities for Software Units in Project.
Alternatively, you can use the API functions to collect metric results programmatically.
When using the API, use the metric IDs to refer to each metric. See Collect Code Testing Metrics Programmatically for an example of how to
collect these metrics programmatically. You can use the function getAvailableMetricIds
to return a list of
available metric identifiers.
There are code testing metrics that can analyze:
SIL Test Results
Metric | Description |
---|---|
SIL Test Status | Status of software-in-the-loop (SIL) test results. The status is either passed, failed, disabled, or untested. |
SIL Test Status Distribution | Distribution of the SIL test statuses. |
SIL and Model Test Statuses | Overall status of the software-in-the-loop (SIL) and simulation (model testing) test results. |
SIL and Model Test Status Distributions | Distribution of the SIL and model test statuses. |
The results from these metrics appear in the SIL Test Results section of the SIL Code Testing dashboard.
SIL Coverage Results
Metric | Description |
---|---|
SIL Coverage Breakdown | Overall coverage achieved, justified, or missed by the software-in-the-loop (SIL) tests in the unit. |
SIL Coverage Fragment | Overall coverage achieved, justified, or missed by the software-in-the-loop (SIL) tests for each model in the unit. |
SIL Coverage Recap | Overall coverage justified and completed by SIL and model tests. |
The results from these metrics appear in the SIL Coverage Results section of the SIL Code Testing dashboard.
Back-to-Back SIL Test Status
Metric | Description |
---|---|
Back-to-Back Test Status for Normal and SIL Mode | Status of the back-to-back translation validation comparing normal mode and software-in-the-loop (SIL) mode test runs. |
Back-to-Back Test Status Distribution for Normal and SIL Mode | Distribution of statuses for back-to-back translation validation comparing normal mode and software-in-the-loop (SIL) mode test runs. |
The results from these metrics appear in the SIL Test Results section of the SIL Code Testing dashboard.
PIL Test Results
Metric | Description |
---|---|
PIL Test Status | Status of the processor-in-the-loop (PIL) test results. The status is either passed, failed, disabled, or untested. |
PIL Test Status Distribution | Distribution of the PIL test statuses. |
PIL and Model Test Statuses | Overall status of the processor-in-the-loop (PIL) and simulation (model testing) test results. |
PIL and Model Test Status Distributions | Distribution of the PIL and model test statuses. |
The results from these metrics appear in the PIL Test Results section of the PIL Code Testing dashboard.
PIL Coverage Results
Metric | Description |
---|---|
PIL Coverage Breakdown | Overall coverage achieved, justified, or missed by the processor-in-the-loop (PIL) tests in the unit. |
PIL Coverage Fragment | Overall coverage achieved, justified, or missed by the processor-in-the-loop (PIL) tests for each model in the unit. |
PIL Coverage Recap | Overall coverage justified and completed by PIL and model tests. |
The results from these metrics appear in the PIL Coverage Results section of the PIL Code Testing dashboard.
Back-to-Back PIL Test Status
Metric | Description |
---|---|
Back-to-Back Test Status for Normal and PIL Mode | Status of the back-to-back translation validation comparing normal mode and processor-in-the-loop (PIL) mode test runs. |
Back-to-Back Test Status Distribution for Normal and PIL Mode | Distribution of statuses for back-to-back translation validation comparing normal mode and processor-in-the-loop (PIL) mode test runs. |
The results from these metrics appear in the PIL Test Results section of the PIL Code Testing dashboard.