Package: matlab.unittest.plugins.codecoverage
Format for code coverage report
To display code coverage metrics in the MATLAB® browser, use an instance of the CoverageReport
class with the plugin CodeCoveragePlugin
.
reportFormat = CoverageReport
constructs a CoverageReport
format. Use this report format with matlab.unittest.plugins.CodeCoveragePlugin
to produce an HTML file in a temporary folder that contains the code coverage report.
reportFormat = CoverageReport(
constructs a reportFolder
)CoverageReport
format. Use this report format with
matlab.unittest.plugins.CodeCoveragePlugin
to produce an HTML
file in the specified folder that contains the code coverage report. Generating
the report overwrites the contents of the folder specified by
reportFolder
.
reportFormat = CoverageReport(___,'MainFile',
constructs a mainFileName
)CoverageReport
format with mainFileName
as the name of the main HTML file containing the code coverage report.
matlab.unittest.plugins.codecoverage.CoberturaFormat
| matlab.unittest.plugins.CodeCoveragePlugin
| runtests