matlab.unittest.plugins.codecoverage.CoverageReport Class
Namespace: matlab.unittest.plugins.codecoverage
Superclasses: matlab.unittest.plugins.codecoverage.CoverageFormat
Format for interactive HTML code coverage report
Description
The matlab.unittest.plugins.codecoverage.CoverageReport class provides
a way to generate interactive code coverage reports in HTML format. To generate a code
coverage report in this format, create a CodeCoveragePlugin instance using a CoverageReport object,
and then add the plugin to the test runner.
An interactive code coverage report lets you customize the displayed information by selecting options in the report. For example, you can choose from the list of included coverage metrics, or control the highlighting for covered or missed executables.
Creation
Description
format = matlab.unittest.plugins.codecoverage.CoverageReport
creates a CoverageReport object that instructs
CodeCoveragePlugin to generate an interactive report in HTML
format and save it to a temporary folder. By default, the main file of the
report is index.html.
format = matlab.unittest.plugins.codecoverage.CoverageReport(
specifies the name of the code coverage report folder.folderName)
format = matlab.unittest.plugins.codecoverage.CoverageReport(___,
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)format =
matlab.unittest.plugins.codecoverage.CoverageReport("MainFile","main.html")
creates a CoverageReport object for generating a code coverage
report whose main file is main.html.