Is it possible to export testresults from Simulink test to xUnit XML format?
Prashant Kumar answered .
2025-11-20
import matlab.unittest.plugins.XMLPlugin;
import matlab.unittest.TestRunner;
suite = testsuite('mySimulinkTestFile.mldatx');
runner = TestRunner.withTextOutput;
runner.addPlugin(XMLPlugin.producingJUnitFormat('myJUnitResults.xml'));
runner.run(suite);