How can I generate test coverage report of a simulink model using Matlab code

3 次查看(过去 30 天)
I am working in a project wich i need to generate the coverage test report using just matlab code without using simulink interface

采纳的回答

Pat Canny
Pat Canny 2023-3-17
You can use the cvhtml function to generate a report.
Here is a simple example from the documentation:
modelName = 'slvnvdemo_cv_small_controller';
open_system(modelName);
cvd = cvsim(modelName);
outfile = 'ratelim_coverage.html';
cvhtml(outfile,cvd);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Collect Coverage for Models 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by