How to export all coverage result (including reference model) from test manager using command window?
4 次查看(过去 30 天)
显示 更早的评论
I know in test manager, we can export the web view of the coverage result of the model.
The exported web view colors the model passing the coverage test as green, and the ones not passing as red.
However, when we save the web view of the model, it does not export the coverage result of the reference model inside of the model we are testing, even though we can see the result from the test manager.
How do we export them all out without saving them one by one? Is there a way to do that in the command window?
0 个评论
回答(1 个)
Anshuman
2023-8-29
Hi Andy,
To export the coverage results of the reference model along with the model you are testing in MATLAB's Test Manager, you can use the 'sltest.export' function in the command window. This function allows you to export the coverage results programmatically and automate the process.
covData = sltest.load('coverageResult.mat');
Use the 'sltest.export' function to export the coverage results, including the reference model coverage.
sltest.export(covData, 'coverageExport.html');
The 'sltest.export' function will generate an HTML report that contains the coverage results for both the model under test and the referenced model(s) within it.
For more information on the 'sltest.export' function and its usage, you can refer to the MATLAB documentation by typing 'doc sltest.export' in the Command Window.
Hope it helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Outputs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!