How to save results of a Class-Based Unittest without ToFile Plugin?
Mostra commenti meno recenti
Hi, Is there any replacement for
matlab.unittest.plugins.ToFile
class? I have Matlab 2013 and my Matlab does not have this Plugin. This ToFile class creates an output stream that writes text output to a UTF-8 encoded file.
Thanks, Arsalan
2 Commenti
Sean de Wolski
il 23 Nov 2016
Can you upgrade to a newer release that has ToFile?
Shar
il 29 Nov 2016
Risposta accettata
Più risposte (1)
Andy Campbell
il 23 Nov 2016
0 voti
As Sean alludes to in his comment, I think the best exxperience will be if you are able to upgrade to a newer release that has ToFile (it was introduced in R2014a). There are certainly many new capabilities and features of the test framework in newer releases.
However, until then, you may have some luck with the -logfile MATLAB startup option. Using this all of the output sent to the command window will also go to this logfile.
Good luck!
Categorie
Scopri di più su Run Unit Tests in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!