The "runtests" function suppresses exceptions and errors thrown within TLC files
이전 댓글 표시
When using the MATLAB testing framework, some errors were not thrown when executing the test scripts with the command "runtests". Specifically, if the test script calls a "tlc" file that throws an error, calling "runtests" on that test script will suppress the error and the test results will pass.
A reproduction example is attached which includes three files:
- test.m: this is the test script
- mytlc.tlc: a tlc file called by test.m
- sub_failFunction.m: a MATLAB function that will throw an error
When running the "test.m" script normally, the error message appears. However, If you execute
>> runtests('test');
the error is no longer thrown.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 ARM Cortex-A Processors에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!