matlab.unittest.plugins.CodeCoveragePlugin.forNamespace
Class: matlab.unittest.plugins.CodeCoveragePlugin
Namespace: matlab.unittest.plugins
Create plugin that collects code coverage information for namespaces
Renamed from matlab.unittest.plugins.CodeCoveragePlugin.forPackage
in R2024a
Syntax
Description
plugin = matlab.unittest.plugins.CodeCoveragePlugin.forNamespace(
creates a plugin that collects code coverage information for source code in the
specified namespace and generates an HTML code coverage report from the information. namespace
)
plugin = matlab.unittest.plugins.CodeCoveragePlugin.forNamespace(
specifies options using one or more name-value arguments. For example,
namespace
,Name,Value
)plugin =
matlab.unittest.plugins.CodeCoveragePlugin.forNamespace("myNamespace","IncludingInnerNamespaces",true)
creates a plugin that generates an HTML code coverage report for source code in the
specified namespace and any of its inner namespaces.
Input Arguments
Examples
Tips
To measure the code coverage for source code in a namespace, the parent folder of the namespace must be on the MATLAB path during the test run.
Version History
Introduced in R2014bSee Also
Functions
matlab.unittest.plugins.CodeCoveragePlugin.forFile
|matlab.unittest.plugins.CodeCoveragePlugin.forFolder