Why test coverage is not aggregated for "Subsystem" blocks?

I have a model that has all the test harnesses saved internally. Even though I have enabled coverage aggregation, when I run the Test Manager, it does not aggregate the coverage. We expect Test Manager results to show one value for the main "Subsystem" aggregating the coverage for any of the "Subsystem" blocks included.
Why is this happening?

 Accepted Answer

This is expected behavior. Even though there are multiple "Subsystems" for which coverage data are collected, the data cannot be aggregated because there is no top-level model harness to aggregate under.
To aggregate the coverage results, you must create a model harness on the highest level of the model. To create a model harness, you can follow the instructions below:
1. Launch the Simulink model
2. On the empty Simulink plane of the top-level model, select: Right-click > Test Harness > Create for Model.. 
3. Click OK

More Answers (0)

Products

Release

No release entered yet.

Community Treasure Hunt

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

Start Hunting!