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

2 Ansichten (letzte 30 Tage)
I am working in a project wich i need to generate the coverage test report using just matlab code without using simulink interface

Akzeptierte Antwort

Pat Canny
Pat Canny am 17 Mär. 2023
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);

Weitere Antworten (0)

Kategorien

Mehr zu Results, Reporting, and Test File Management finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by