How to configure logging informations in TestReportPlugins

5 views (last 30 days)
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.

Answers (1)

Hans Harms
Hans Harms on 3 Apr 2024 at 13:22
Dear Regis,
Did you find a solution for this? I'm having the exact same challenge.

Categories

Find more on MATLAB Report Generator in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!