Some lines missed in code coverage report

조회 수: 4 (최근 30일)
Ricardo Krause
Ricardo Krause 2020년 8월 5일
댓글: Steven Apsel 2022년 2월 28일
Hello,
we work with matlab unit tests for matlab classes and want to improve our code coverage. We noticed that sometimes the coverage is not counted correctly in our tests.
We have set explicit breakpoints, which were also addressed, but the line in the report appears as not covered.
Can someone tell us what this could be or how we can debug it?
Thanks
  댓글 수: 4
Micah Fry
Micah Fry 2021년 6월 17일
Ricardo,
Did you ever get to any resolution on this? I'm having similar issues (https://www.mathworks.com/matlabcentral/answers/858045-coverage-report-from-unit-tests-is-inaccurate?s_tid=srchtitle)
Steven Apsel
Steven Apsel 2022년 2월 28일
I had similar problems, and removing a "clear all" fixed it.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Collect Decision, Condition, and MC/DC Coverage for MATLAB Code에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by