How Generate Code Coverage Report in Cobertura XML Format for a .slx file
Mostrar comentarios más antiguos
Hello,currently I work with Simulink Test for Model Unit Verification. For the last step - generating the reports (coverage, tests, requirements) I need to find a way to get all these in a XML or JSON or CSV format.
For the report generated out of the test manager I learned that I can use the XMLPlugin. So this is OK.
For the coverage report I saw there is the CodeCoveragePlugin -> CoberturaFormat, but this can be applied only on *.m files and *.mlx files.
Is there a way to apply use this plugin on *.slx files? or *.mldatx? Or is there any other plugin available for my case?
Also could you please help with the following 2 questions related to the coverage report:
1. Is there a way to generate this report only for a specific unit inside the Simulink model? My test harness is created at a higher level from the unit that I am interested to verify, so when I Run the Coverage, I get the report for the entire component.
Under Model Settings/Coverage view I have selected Subsystem and then I chose the unit that I am interested in, but no result. The coverage report is still created for the entire component.
2. From where can I chose to run only the Statement coverage?
Thank you!!!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Results, Reporting, and Test File Management en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!