How to save results of each test in unittest to a text file?

조회 수: 2 (최근 30일)
Shar
Shar 2016년 11월 23일
댓글: Andy Campbell 2016년 11월 23일
Hi, I'm writing a Function-Based unit test. I want to save the results of each test completely to a text file with failing reasons. Does anyone have a suggestion for me? Thanks in advance
Arsalan
  댓글 수: 5
Shar
Shar 2016년 11월 23일
Hey, I've found out that it is better to use class-based unittest, problem is that my matlab is 2013 version and does not all of plugins, do you know how should I replace this Plugin:
matlab.unittest.plugins.ToFile
The ToFile class creates an output stream that writes text output to a UTF-8 encoded file.
Andy Campbell
Andy Campbell 2016년 11월 23일
See the answer here .

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Write Unit Tests에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by