How to configure logging informations in TestReportPlugins

5 ビュー (過去 30 日間)
Regis Ruelland
Regis Ruelland 2020 年 4 月 6 日
回答済み: Hans Harms 2024 年 4 月 3 日 13:22
Hello
I am trying to use the matlab unit test framework. In this context, I would like to generate a report using
the TestReportPlugin. (I don't find lot of informations concerning report customisation.)
I include figures for each test using the FigureDiagnostic() and the TestCase.log method like this:
testCase.log(1, FigureDiagnostic(fig));
However the results in the report seems more "verbose" than I expected.
Then I have tried to change this "verbosity" by configuring a LoggingPlugin by this way:
logPlugin = LoggingPlugin.withVerbosity(...
Verbosity.Terse, ...
'Description', '',...
'NumStackFrames', 0,...
'HideTimestamp', true...
);
runner.addPlugin(logPlugin);
testReport = TestReportPlugin.producingHTML(...
'testOutputs',...
'Verbosity', Verbosity.Verbose);
runner.addPlugin(testReport);
But I have still the description, the timestamp, and the stack informations in the report.
Where did I miss something ? Could you enlighten me on a way to control the report configuration.
Thanks in advance,
Regis Ruelland.

回答 (1 件)

Hans Harms
Hans Harms 2024 年 4 月 3 日 13:22
Dear Regis,
Did you find a solution for this? I'm having the exact same challenge.

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by