addCodeCoverage
Class: matlab.buildtool.tasks.TestTask
Namespace: matlab.buildtool.tasks
Description
task = addCodeCoverage(
enables task
,results
)task
to produce the specified code coverage results for the
MATLAB® source code defined in its SourceFiles
property. The
method returns the specified task with an updated CodeCoverageResults
property.
Note
To use the addCodeCoverage
method, you must first specify your
source code by setting the SourceFiles
property of the task.