matlab.unittest.plugins.TestReportPlugin.producingHTML
Class: matlab.unittest.plugins.TestReportPlugin
Namespace: matlab.unittest.plugins
Create plugin that generates HTML test report
Syntax
Description
plugin = matlab.unittest.plugins.TestReportPlugin.producingHTML
creates a plugin that generates a multifile HTML test report in a temporary folder.
The plugin uses the default filename index.html
for the main file
of the report within the temporary folder. If you rerun the test suite with this
plugin, then MATLAB® overwrites the contents of the folder.
This syntax is equivalent to plugin =
matlab.unittest.plugins.TestReportPlugin.producingHTML(tempname)
.
plugin = matlab.unittest.plugins.TestReportPlugin.producingHTML(
saves the report to the specified location:fileOrFolder
)
If you specify a file, the plugin generates a single-file report and saves it as the specified file. In a single-file HTML test report, all the contents of the report, such as text and images, are included in a single HTML file. (since R2024a)
If you specify a folder, the plugin generates a multifile report and saves it to the specified folder.
plugin = matlab.unittest.plugins.TestReportPlugin.producingHTML(___,
specifies options using one or more name-value arguments in addition to any of the
input argument combinations in previous syntaxes. For example, Name,Value
)plugin =
matlab.unittest.plugins.TestReportPlugin.producingHTML("MainFile","main.html")
creates a plugin that generates a multifile test report whose main file is
main.html
instead of index.html
.