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.
0 个评论
回答(1 个)
Hans Harms
2024-4-3,13:22
Dear Regis,
Did you find a solution for this? I'm having the exact same challenge.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Report Generator 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!