open_system('unit_test_1.slx');% modify the data dictionary used by the unit test model and referenced model
cv1=cvsim(bdroot);open_system('unit_test_2.slx');% modify the data dictionary used by the unit test model and referenced modelcv2=cvsim(bdroot);cv_total=cv1+cv2;cvhtml('test.html',cv_total);
MATLAB: Aggregate coverage data for multiple unit test models
coverageSimulink Coverage
hello all,
I am trying to aggregate the coverage data for a referenced model which is shared in two (or more) unit test models. I was wondering how to aggregate the coverage data when running both unit tests.
I have tried the following code:
For both unit test models coverage is enabled for the referenced models, thus recording the coverage for the shared reference model. However this approach doesn't work because the concatenation of the cvdata object is failing.
Anyone has a clue how to solve this?
thanks in advance, Han Geerligs
Best Answer