How to configure logging informations in TestReportPlugins

5 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 MATLAB Report Generator 的更多信息

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by