Check MIL, PIL Test Coverage (programmatically ) in ProcessAdvisor
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Xiaohong shen
am 3 Jul. 2025
Beantwortet: Sameer
am 7 Jul. 2025
I want to have some mechanism to set a test task as failed, when the test coverage is insufficient. I am trying to find a way to get the coverage value from the task "MergeTestResults" MIL and SIL test tasks are already completed in advance.
Does some one know how to get the coverage value programmatically?
0 Kommentare
Akzeptierte Antwort
Sameer
am 7 Jul. 2025
Once you get the "cvdata" object (e.g., from merged test results), you can extract various coverage metrics such as decision, condition, MCDC, etc., using Simulink Coverage API functions.
For example:
Use the "decisioninfo" function to retrieve decision coverage data:
decisionCov = decisioninfo(cvdo, 'myModel');
Please refer to the following MathWorks documentation links for more details on how to use these functions:
Relational Boundary Coverage: https://www.mathworks.com/help/slcoverage/ref/relationalboundaryinfo.html
Hope this helps!
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Collect Coverage for Models 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!