matlab.unittest.plugins.XMLPlugin.producingJUnitFormat
Class: matlab.unittest.plugins.XMLPlugin
Package: matlab.unittest.plugins
Construct plugin to write test results in XML format
Syntax
xmlPlugin = matlab.unittest.plugins.XMLPlugin.producingJUnitFormat(xmlFile)
xmlPlugin = matlab.unittest.plugins.XMLPlugin.producingJUnitFormat(xmlFile,'OutputDetail',OutputDetail)
Description
returns a plugin that produces JUnit-style XML output to the specified XML file. Using
this plugin, you can integrate MATLAB® Unit Test results into third-party systems that recognize JUnit-style XML.
For example, you can integrate test results with continuous integration systems like
Jenkins®, TeamCity®, or Microsoft® Team Foundation Server.xmlPlugin
= matlab.unittest.plugins.XMLPlugin.producingJUnitFormat(xmlFile
)
The XML file is overwritten every time you run the test suite with this plugin.
returns a plugin that displays failing events with the amount of detail specified by
xmlPlugin
= matlab.unittest.plugins.XMLPlugin.producingJUnitFormat(xmlFile
,'OutputDetail',OutputDetail
)OutputDetail
.
Input Arguments
Output Arguments
Examples
Create Plugin to Create XML Output File
import matlab.unittest.plugins.XMLPlugin import matlab.automation.Verbosity % Create a XML plugin that sends XML Output to a file plugin = XMLPlugin.producingJUnitFormat('MyXMLFile.xml'); % Create a XML plugin that produces a concise amount of output detail plugin = XMLPlugin.producingJUnitFormat('MyXMLFile.xml','OutputDetail',Verbosity.Concise);
For more examples, see matlab.unittest.plugins.XMLPlugin
.
Version History
Introduced in R2015b