|
I’m trying to get coverage results on my model using cvhtml. Maybe I read it incorrectly but according to:
http://www.mathworks.com/help/toolbox/slvnv/ref/cvhtml.html
I believe it says cvhtml can take cvdata or cv.cvdatagroup objects to generate a report on, but when I generate a report using a cv.cvdatagroup object it only gives me the data on the last object that was put into the data group. I have the following code:
open_system(modelname);
set_param (modelname, 'RecordCoverage', 'on', 'CovHtmlReporting', 'on', 'CovCumulativeReport', 'on', 'CovMetricSettings', 'dcm');
cvt1 = cvtest(modelname);
cvt1.setupCmd = 'load(''file1.mat'');';
cvd1 = cvsim(cvt1);
cvt2 = cvtest(modelname);
cvt2.setupCmd = 'load(''file2.mat'');';
cvd2 = cvsim(cvt2);
cvdg = cv.cvdatagroup(cvd1, cvd2);
cvhtml('TestCoverageHTML.html', cvdg);
cvexit();
close_system(modelname, 0);
This will get me only the results stored in cvd2. So did I read the html file right or am I just implementing it wrong? If I run cvhtml like:
cvhtml('TestCoverageHTML.html', cvd1, cvd2);
everything works great.
|