How to configure logging informations in TestReportPlugins
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Hans Harms
el 3 de Abr. de 2024
Dear Regis,
Did you find a solution for this? I'm having the exact same challenge.
0 comentarios
Ver también
Categorías
Más información sobre Results, Reporting, and Test File Management en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!