Some lines missed in code coverage report
Afficher commentaires plus anciens
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 commentaires
Andy Campbell
le 2 Oct 2020
Hi Ricardo,
Finally, are any of your tests issuing "clear all" or "clear classes", or using the profiler as part of the testing?
Thanks,
Andy
Ricardo Krause
le 5 Oct 2020
Modifié(e) : Ricardo Krause
le 5 Oct 2020
Micah Fry
le 17 Juin 2021
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
le 28 Fév 2022
I had similar problems, and removing a "clear all" fixed it.
Réponses (0)
Catégories
En savoir plus sur Collect Decision, Condition, and MC/DC Coverage for MATLAB Code dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
