Contenuto principale

Generate Reports from C/C++ Test Results

Using Polyspace® Test™, you can export C/C++ test results to HTML reports for archiving and certification. This topic describes how to generate a report after running tests in the Polyspace Platform user interface or at the command line.

Generate Report in User Interface

To generate a report from your test results:

  1. Open your test results in the Polyspace Platform user interface.

    For more information, see Open Polyspace Results in Polyspace Platform User Interface.

  2. On the Polyspace Platform toolstrip, select Report.

    If you are in the dashboard perspective that shows an overview of results and do not see the Report option on the Polyspace Platform toolstrip, select Review on the toolstrip to open the review perspective showing details of results.

  3. In the Generate HTML Report dialog box, specify options as required:

    • To generate a report of test specifications in addition to test results, select Report test specifications. For more information, see Report C/C++ Test Specifications with Test Results.

    • To omit passing assessments from your report, clear Show passed assessments. For more information, see Report Only Failing Assessments in C/C++ Test Reports.

    • To customize the generated report, specify the path to a report options JSON file for the Options file setting. For more information on the report options file, see Customize Content and Style of Polyspace Test Reports.

    • Specify a folder to save the reports using the option Output folder.

      Report generation can produce several HTML files, one for each test suite. Each HTML file is named after the test suite that was executed. To avoid confusion with reports from previous runs, select a location that does not already have existing HTML files.

  4. Select OK.

You cannot customize the Polyspace Test report.

Generate Report at Command Line

Suppose your test results (.pstestr files) are in a folder <resultsFolder>. To generate an HTML report from the results, at the command line, enter the following:

polyspace-test -report -report-dir <reportFolder> -html <resultsFolder>
The generated HTML reports are stored in the folder <reportFolder>.

See Also

Topics