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 Center および File ExchangeWrite Unit Tests についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by