run unit tests in subfolder containing the test files
조회 수: 20 (최근 30일)
이전 댓글 표시
Hello, I have a bunch of test files in a folder and another file that I indicate the runtest command in (the file is not in the same folder as the test files). I want to let MATLAB go directly to that folder and run the tests from there. I checked the documentations but what was suggested there didn't help. I want to have something like
runtests('Test_Folder', '-verbose')
can anyone assist with that?
댓글 수: 0
답변 (1개)
Steven Lord
2022년 3월 23일
Try building a test suite using matlab.unittest.TestSuite.fromFolder and then run that suite by calling run on it.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Testing Frameworks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!