matlab.unittest.plugins.XMLPlugin.producingJUnitFormat
Class: matlab.unittest.plugins.XMLPlugin
Namespace: matlab.unittest.plugins
Create plugin that produces test results in JUnit-style XML format
Syntax
Description
plugin = matlab.unittest.plugins.XMLPlugin.producingJUnitFormat(
creates a plugin that writes test results in JUnit-style XML format to the specified
file.filename
)
Using this plugin, you can integrate MATLAB® unit test results into third-party systems that recognize the JUnit-style XML format. For example, you can integrate test results with continuous integration platforms, such as Jenkins®, TeamCity®, or Azure® DevOps.
Input Arguments
Examples
Tips
For script-based or function-based tests, the value of the
classname
attribute of the<testcase>
element in the resulting XML file is the name of your test file.
Version History
Introduced in R2015b