padv.builtin.task.MergeTestResults Class
Namespace: padv.builtin.task
Superclasses: padv.Task
Task for generating consolidated test results report and merged coverage reports
Description
The padv.builtin.task.MergeTestResults
class provides a task that can
generate a consolidated test results report and merged coverage reports using Simulink®
Test™ and Simulink
Coverage™. The task can generate the following artifacts for a model:
a consolidated test results report
a merged model coverage report for normal mode simulation results
a merged code coverage report for software-in-the-loop (SIL) mode results
a merged code coverage report for processor-in-the-loop (PIL) mode results
You can run your tests using the built-in task padv.builtin.task.RunTestsPerTestCase
and then generate the reports using the
MergeTestResults
task. You can add these tasks to your process model by using
the method addTask
. After you add the tasks to your process model, you can
run the tasks from the Process Advisor app or by using the function
runprocess
.
Alternatively, you can run your tests using the built-in task
padv.builtin.task.RunTestsPerModel
, but to generate the consolidated test
results report and merged coverage report you need to reconfigure the
MergeTestResults
task.
To view the source code for this built-in task, in the MATLAB® Command Window, enter:
open padv.builtin.task.MergeTestResults
The padv.builtin.task.MergeTestResults
class is a handle
class.
Creation
Description
creates a task for generating a consolidated test results report and merged coverage
reports using Simulink
Test and Simulink
Coverage.task
= padv.builtin.task.MergeTestResults()
specifies that the task can only execute after the specified predecessor task runs.task
= padv.builtin.task.MergeTestResults(PredecessorTask=PredecessorTask
)
When you specify a predecessor task, you must also specify a dependsOn
relationship between the MergeTestResults
task and the predecessor task in
your process model.
sets certain properties using one or more name-value arguments. For example, task
= padv.builtin.task.MergeTestResults(Name=Value
)task
= padv.builtin.task.MergeTestResults(Name = "MyTestAndCoverageReportsTask")
creates a task with the specified name.
You can use this syntax to set property values for Name
,
Title
, IterationQuery
,
InputQueries
, InputDependencyQuery
, or
Licenses
.
The padv.builtin.task.MergeTestResults
class also has other properties, but you cannot set
those properties during task creation.
Input Arguments
Properties
Methods
Examples
Tips
Run your tests by using either the built-in task
padv.builtin.task.RunTestsPerModel
orpadv.builtin.task.RunTestsPerTestCase
.If you are using the pipeline generator, set the
StopOnStageFailure
property of your pipeline generator options object tofalse
so that the pipeline collects and publishes results, even if earlier stages fail.