generateReport
Generate report for recent task results
Description
generateReport(
generates a
report with task results.reportSettings
)
After you run tasks using the Process Advisor app or runprocess
function, you can call the generateReport
function on a padv.ProcessAdvisorReportGenerator
object to generate a report of the task
results.
Alternatively, you can use runprocess
with the
GenerateReport
name-value argument specified as
true
: runprocess(GenerateReport = true)
.
This functionality requires CI/CD Automation for Simulink Check.
Examples
Input Arguments
Tips
If you want to run tasks and generate a report in batch mode, you can specify the
runprocess
argumentExitInBatchMode
asfalse
and use theexitCode
returned byrunprocess
to exit. For example:Otherwise, the[buildResult, exitCode] = runprocess(ExitInBatchMode=false); rptObj = padv.ProcessAdvisorReportGenerator(); generateReport(rptObj); exit(exitCode);
runprocess
function automatically exits MATLAB® before the report can generate.Alternatively, you can use
runprocess
with theGenerateReport
name-value argument specified astrue
:runprocess(GenerateReport = true)
.
Alternative Functionality
You can export a build report that summarizes the task statuses, task results, and other information about the task execution by using the Process Advisor app. In the Process Advisor toolstrip, in the Export section, click Report. In the Export Report dialog box, you can specify options for the report an export a report for the current process by clicking Export.