- What do you mean by it will consist of three file names?
- Are you looking for a programmatic interface to the test results?
- Are you looking for the test results in a format that is easily archived?
- Are you generating some files or other artifacts during the test run that you would like to save?
Storing results from unit tests for later review
조회 수: 19 (최근 30일)
이전 댓글 표시
I have a set of unit test methods defined inside a class derived from matlab.unittest.TestCase. The tests run and give pass/fail results as expected.
What I would like to do is to save a data structure generated during each test, for later review. Currently this will consist of three file names, but I may add to this later.
I have been looking through the unit test framework documentation, but haven't found a way to do this yet. Is it possible to do this?
댓글 수: 4
Brendan Hamm
2018년 4월 4일
Sorry for the delay.
I'm a bit confused. If you have the information on the paths of the images created by each test, why can these not be matched up?
Are you using a parameterization of the image paths?
Perhaps a code example may clarify exactly where the issue is.
답변 (1개)
Andy Campbell
2019년 1월 28일
Based on the comments above, it sounds like you may want to try an approach simialr to the one outlined in this blog post:
Hope that helps!
Andy
참고 항목
카테고리
Help Center 및 File Exchange에서 Generated Code Tests에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!