What settings should be done when statement coverage is required?
이전 댓글 표시
Hello!
Could you please clarify the following for me?
I am not sure 100% which option is better to check for the coverage analysis. STATEMENT coverage is required in the project.
If I understood corectly, statement coverage is included in CC(Condition coverage) and MCDC (Modified Condition/Decision Coverage) since statement coverage verifies if the conditions were reached.
Thanks for your support!
채택된 답변
추가 답변 (1개)
Jeremy
2024년 3월 12일
1 개 추천
In the Simulink Configuration Parameters, on the Coverage pane, you can set "Structural Coverage Level" to "Block Execution." When you run software-in-the-loop simulation, you will get statement coverage. But also, each metric down the list is inclusive of those before it. So if you set "Structural Coverage Level" to "Decision," you still get statement coverage.
All that to say, I don't think it's even possible to turn statement coverage off unless you completely disable coverage analysis (e.g. by clearing "Enable Coverage Analysis" check box). I hope that helps.
-Jeremy
카테고리
도움말 센터 및 File Exchange에서 Collect Coverage for Models에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!