What feature do you want to see added?
When running my unit tests from Jenkins I need the possibility to add diagnostic output to the junit xml file, also when the unit test pass. This would be really helpful for debuggiong purposes.
In the MATLAB Unit Test Framework, the built-in XMLPlugin.producingJUnitFormat only captures diagnostic information for failed or errored test cases. Unlike the TestReportPlugin (which features an IncludingPassingDiagnostics parameter), the JUnit XML plugin lacks a native configuration to include custom diagnostics or logged messages inside a tag for successful tests.
The standard runMATLABTests step in the MATLAB Jenkins plugin wraps around MATLAB's default test automation tool. Even if you increase the loggingLevel or outputDetail parameters within the plugin, the generated JUnit XML artifact will still drop diagnostics for successful tests.
A solution might be to tell MATLAB to capture diagnostics for successful tests in memory using the DiagnosticsRecordingPlugin. After running the suite, export the collected info to XML.
A better solution would be to extend the XMLPlugin.producingJUnitFormat plugin to accept an IncludingPassingDiagnostics parameter.
Upstream changes
No response
Are you interested in contributing this feature?
No response
What feature do you want to see added?
When running my unit tests from Jenkins I need the possibility to add diagnostic output to the junit xml file, also when the unit test pass. This would be really helpful for debuggiong purposes.
In the MATLAB Unit Test Framework, the built-in XMLPlugin.producingJUnitFormat only captures diagnostic information for failed or errored test cases. Unlike the TestReportPlugin (which features an IncludingPassingDiagnostics parameter), the JUnit XML plugin lacks a native configuration to include custom diagnostics or logged messages inside a tag for successful tests.
The standard runMATLABTests step in the MATLAB Jenkins plugin wraps around MATLAB's default test automation tool. Even if you increase the loggingLevel or outputDetail parameters within the plugin, the generated JUnit XML artifact will still drop diagnostics for successful tests.
A solution might be to tell MATLAB to capture diagnostics for successful tests in memory using the DiagnosticsRecordingPlugin. After running the suite, export the collected info to XML.
A better solution would be to extend the XMLPlugin.producingJUnitFormat plugin to accept an IncludingPassingDiagnostics parameter.
Upstream changes
No response
Are you interested in contributing this feature?
No response