MATLAB xUnit Test Framework: handling error()
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
i ve started to use the xUnit Test Framework. I created some testcases and it worked fine but i noticed that i get some messages which containing "test case failure". I checked the testing code and i noticed that the function "error" has been used. So my testing code only "reports" an error and stopped the script. My questions is: how should i handle this? Should i replace the error-functions so that the xUnit Test Framework wont report a failure as its not really a failure?
Many thanks!
댓글 수: 0
답변 (1개)
Andy Campbell
2013년 7월 25일
Hi Mick,
When you say you are using the xUnit Test Framework are you referring to Steve Eddins' submission on the file exchange or the unit test framework included in R2103a?
If you are trying to specifically test erroring conditions then you may want to look at the verifyError method if you are using the framework included in R2013a.
If that is not what you are trying to do then perhaps a little carification of your question would be helpful.
Hope that helps! Andy
댓글 수: 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!