You can customize reports by configuring the settings in the .properties file (seeĀ Configuration Overview). This section describes examples of how your reports can be configured. SeeĀ Report Settings for a complete list of settings that allow you to customize your reports to your needs.
You can configure the location of reports with the report.location
property. For example:
report.location=[path/to/location] |
Alternatively, you can specify the output directory for reports with the -repor
t switch. For example:
cpptestcli -report /home/reports/html |
By default, an HTML report is generated. You can generate a PDF report or a report with a custom extension to the specified directory by setting the report.format
property. For example:
report.format=pdf |
Create an empty configuration file (csv.properties) and add the following line:
cpptest.report.csv.enabled=true |
Run code analysis and specify the configuration file with the -settings
switch:
cpptestcli -config "builtin://Recommended Rules" -compiler gcc_3_4 -settings csv.properties -input cpptest.bdf |
C/C++test will perform the following tasks: