Simulink Test AggregatedTest Coverage Results

1 view (last 30 days)
I have a model which uses two systems. I have created three test harness, one for each the systems (Test_Harness_A and Test_Harness_B) , and one for the general model (Test_Harness_C) which tests the integration between the two systems.
I have a good coverage on test A and B however I am not able to make the Test Manager, which has all three test harnessess to compute the Aggregated Decision coverage when running Test_Harness_C. The result of the Aggregated Coverage Results is 3 analyzed model with independent coverage.
Is there a way to correctly compute the agregated coverage results?
Note: If I have multiple harness from the same module I am able to compute the aggregated coverage.

Answers (1)

Akshat Dalal
Akshat Dalal on 17 Mar 2025
Hi Ricard,
I don't think this is possible. Coverage is different for each harness and cannot be combined for different models. Each test harness is designed to evaluate specific aspects of the systems or their integration, and as such, their coverage metrics are inherently distinct.
For your scenario, Test_Harness_C is meant to test the integration between the two systems, which means its coverage should be a generic representation that encompasses elements from both Test_Harness_A and Test_Harness_B. However, this does not mean that the coverage results from C can be directly aggregated with those from A and B, as each harness is assessing different facets or levels of the model.
If you really want a comparison or a comprehensive view, you should generate the individual coverage reports for each test harness and then manually combine them to draw conclusions. This manual combination will allow you to qualitatively assess how well the integration (Test_Harness_C) complements the individual system tests (Test_Harness_A and Test_Harness_B), and identify any gaps or overlaps in coverage.

Categories

Find more on Verification, Validation, and Test in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!