cvload
Load coverage tests and stored results into memory
Description
[
loads the tests and data stored in the specified file.covSettings
,covData
] = cvload(fileName
)
[
restores or clears the cumulative results from prior runs depending on the value of
covSettings
,covData
] = cvload(fileName
,restoreTotal
)restoreTotal
.
Note
When using the cvload
command:
If a model with the same name exists in the coverage database,
cvload
only loads the compatible results that reference the existing model to prevent duplication.If the Simulink® models referenced from the file are open, but do not exist in the coverage database,
cvload
resolves the links to the existing models.When you are loading several files that reference the same model,
cvload
only loads the results that are consistent with the earlier files.Starting in R2020b, you can load coverage data created in R2017b or later. You can aggregate coverage data from two or more
cvdata
objects for the same model if thedbVersion
properties match.
Examples
Input Arguments
Output Arguments
Alternatives
You can load existing coverage data in the Coverage Results Explorer:
Open the model for which you want to load existing coverage data.
In the Apps tab, select Coverage Analyzer.
In the Coverage tab, select Results Explorer.
In the Coverage Results Explorer, right click Data Repository and select Load coverage data.
Select the coverage data file that you want to load.