polyspace-report-generator
(System Command) Generate reports from Polyspace analysis results stored locally or on Polyspace Access
The following options will be removed in a future release:
-generate-results-list-file-generate-variable-access-file-key-mode
Use instead for
exporting results to an external format such as CSV or JSON.polyspace-results-export
Use the VariableAccess report template for generating a global
variables accesses report. See Bug Finder and Code Prover report (-report-template).
Syntax
Description
The polyspace-report-generator system command generates PDF, Word, or HTML reports from Polyspace® static analysis results by using predefined or custom templates.
Generate Reports from Local Results
Note
This Polyspace command is available in . Here, polyspaceroot\polyspace\bin is the Polyspace installation folder, for instance, polyspacerootC:\Program Files\Polyspace\R2026a (see also Installation Folder for desktop products or Installation Folder for server products). To avoid typing the full path to this command, add this location to the PATH environment variable in your operating system.
polyspace-report-generator -template generates a report by using the template outputTemplate [reporting options]outputTemplate for the local analysis results that you specify with reporting options.
By default, reports for results from project-name are stored as project-name_report-name in the PathToFolder\Polyspace-Doc folder. PathToFolder is the results folder of project-name.
polyspace-report-generator -generate-results-list-file [-results-dir exports the analysis results stored locally in resultsFolder] [-set-language-english]resultsFolder to a tab-delimited text file. The file contains the result information available on the Results List pane in the user interface. For more information on the exported results list, see View Exported Results.
By default, the results file for results from project-name is stored in the PathToFolder\Polyspace-Doc folder. PathToFolder is the results folder of project-name.
For exporting results to a tab-delimited text file, the polyspace-results-export command is preferred.
polyspace-report-generator -generate-variable-access-file [-results-dir exports the list of global variables in your code from the Code Prover analysis stored locally in resultsFolder] [-set-language-english]FOLDER to a tab-delimited text file. The file contains the information available on the Variable Access pane in the user interface. For more information on the exported variables list, see View Exported Variable List.
By default, the variables file for results from project-name is stored in the PathToFolder\Polyspace-Doc folder. PathToFolder is the results folder of project-name.
polyspace-report-generator -configure-keystore configures the report generator to communicate with Polyspace
Access™ over HTTPS.
Run this one-time configuration step if Polyspace Access is configured to use the HTTPS protocol and you do not have a Polyspace Bug Finder™ desktop license, or you have a desktop license but you have not configured the desktop UI to communicate with Polyspace Access over HTTPS. Before running this command, generate a client keystore to store the SSL certificate that Polyspace Access uses for HTTPS. See Generate a Client Keystore (Polyspace Access).
Generate Reports from Polyspace Access Results
polyspace-report-generator -template generates a report by using the template outputTemplate -host hostName -run-id runID [polyspace access options] [reporting options]outputTemplate for the analysis results corresponding to run runID on Polyspace
Access. hostName is the fully qualified host name of the machine that hosts Polyspace
Access.
By default, reports for results from project-name are stored as project-name_report-name in the PathToFolder\Polyspace-Doc folder. PathToFolder is the path from which you call the command.
polyspace-report-generator -generate-results-list-file -host exports the analysis results corresponding to run hostName -run-id runID [polyspace access options] [-set-language-english]runID on Polyspace
Access to a tab-delimited text file. The file contains the result information available on the Results List pane in the Polyspace
Access web interface. hostName is the fully qualified host name of the machine that hosts Polyspace
Access. For more information on the exported results list, see Results List in Polyspace Access Web Interface (Polyspace Access).
By default, the results file for results from project-name is stored in the PathToFolder\Polyspace-Doc folder. PathToFolder is the path from which you call the command.
For exporting results to a tab-delimited text file, the polyspace-results-export command is preferred.
polyspace-report-generator -generate-variable-access-file -host exports the list of global variables in your code from the Code Prover analysis corresponding to run hostName -run-id runID [polyspace access options] [-set-language-english]runID on Polyspace
Access to a tab-delimited text file. The file contains the information available on the Variable Access pane in the Polyspace
Access web interface. hostName is the fully qualified host name of the machine that hosts Polyspace
Access. For more information on the exported variables list, see View Exported Variable List.
By default, the variables file for results from project-name is stored in the PathToFolder\Polyspace-Doc folder. PathToFolder is the path from which you call the command.
Examples
Input Arguments
Tips
You cannot use the
polyspace-report-generatorcommand with results generated with Polyspace as You Code™. Use thepolyspace-results-exportcommand instead. Seepolyspace-results-export.Report generation can take a long time for result sets containing a very large number of defects or coding rules violations. In some cases, you might run into issues from insufficient memory. If that happens, you can either increase the Java® heap size or export the results to a tab-delimited text (TSV) file. The results export is faster than report generation and can complete in reasonable time even for large result sets. For more information, see Fix Insufficient Memory Errors During Polyspace Report Generation.
Alternative Functionality
Instead of generating reports from existing analysis results, you might want a report to
be generated along with the analysis. In this case, use the analysis options
-report-template and -report-output-format. See Configure Reporting.
Reports generated along with analysis will only contain review information imported from previous analyses (if any such information is imported). If you add new review information to the results, you will have to regenerate the reports using the polyspace-report-generator command.