matlab.unittest.plugins.CodeCoveragePlugin.forFile
Class: matlab.unittest.plugins.CodeCoveragePlugin
Namespace: matlab.unittest.plugins
Create plugin that collects code coverage information for files
Syntax
Description
plugin = matlab.unittest.plugins.CodeCoveragePlugin.forFile(
creates a plugin that collects code coverage information for source code in the
specified file and generates an HTML code coverage report from the
information.file
)
plugin = matlab.unittest.plugins.CodeCoveragePlugin.forFile(
specifies options using one or more name-value arguments. For example,
file
,Name,Value
)plugin =
matlab.unittest.plugins.CodeCoveragePlugin.forFile("myFile.m","Producing",matlab.unittest.plugins.codecoverage.CoberturaFormat("report.xml"))
creates a plugin that generates a Cobertura XML code coverage report for source code
in the specified file.
Input Arguments
Examples
Version History
Introduced in R2017bSee Also
Functions
matlab.unittest.plugins.CodeCoveragePlugin.forFolder
|matlab.unittest.plugins.CodeCoveragePlugin.forNamespace