In this section:
The Parasoft Findings plugin is designed to be used in a post test-execution build step that integrates functional and unit test reports generated by Parasoft tools into your TeamCity project. The task will collect test results from the Parasoft report XML files and display the number of passed/failed tests and result details. The results can also be displayed as trending data in a graph for a simple visualization. You can also view static analysis reports to identify code that does not comply with your static analysis rules.
The plugin can consume the following report types:
See TeamCity Installing Additional Plugins documentation page for additional information.
A typical build configuration would consist of the following steps:
Do not enable the XML report processing build feature with Ant JUnit report types in your build configuration because doing so may have undesirable effects.
Open the TeamCity build configuration page and click on the last build results link in the Overview or History tab. The build results pages contain the appropriate Parasoft tool report details.
C/C++test reports for unit test results must be generated with the Overview of checked files and executed tests option enabled. You can enable this option on the command line by using the option -property report.contexts_details=true
or by setting the report.contexts_details=true
property in the settings file.
Starting with version 2024.1, you can also use the command line option -property report.additional.report.dir=<REPORT_DIR>
when generating the reports and use reports generated in this directory.
If a report cannot be parsed, the build will fail. Details concerning the failure can be found on the Build Log tab.
It is recommended that you enable Delete all files in the checkout directory before the build in VCS settings for cleaner build logs.
If you are also using DTP, you may wish to set up a properties file containing your DTP URL (note: only DTP 2023.1 or later is supported). Enter the location of that properties file in the Settings field of the build step you created as part of the Configuring the Plugin. Doing so will let you link rule documents being URL hosted by your DTP server to the TeamCity view.
Note that the DTP URL must be entered using a domain name, as TeamCity does not currently support a <host_name>:<port> pattern. It may be necessary for you to set up a web server for DTP using a tool like Apache, Nginx, or something similar.
Setting | Purpose |
---|---|
dtp.url=HTTP|HTTPS://<domain_name> | Specifies the domain name for your DTP server. Must be entered using a domain name; TeamCity does not support a <hostname>:<port> pattern. Example: https://my.domain.com/dtp |
If you are generating static analysis reports with C/C++test Professional 2023.1 or earlier, make sure the Add absolute file paths to XML data option is enabled to load the source code in Duplicates tab. You can enable this option on the command line by setting the report.location_details=true
property in the settings file.
The Parasoft Findings Plugin for TeamCity uses the following third-party software:
This software is used under an Apache License 2.0 with this notice.
This software is used under an Apache License 2.0 with this notice.
This software is used under an Apache License 2.0 with this notice.
This software is used under an Apache License 2.0 with this notice.
This software is used under an Apache License 2.0 with this notice.
This software is used under an Apache License 2.0 with this notice.
This software is used under an Apache License 2.0 with this notice.
This software is used under an Apache License 2.0 with this notice.