C/C++test CT can publish code coverage and GoogleTest reports to Parasoft DTP with the cpptestcov report dtp
command.
Be sure to configure DTP connection parameters - create a configuration file with the DTP settings:
dtp.url
- Specifies the URL to the DTP server. (<HOST>:<PORT>)dtp.user
- Specifies the username for DTP server authentication.dtp.password
- Specifies the password for DTP server authentication.dtp.project
- Specifies the name of the DTP project.build.id
- Specifies a unique build identifier used to label results.
Use the -root <SRC_ROOT>
option to define the root of the project: the DTP module name will be set to the name of the root directory.
Note: When running cpptestcov report dtp
in the source root directory, you can use:
-root . |
Examples:
cpptestcov report dtp cov-data-folder cpptestcov report dtp -root . -settings dtp.properties cov-data-folder gtest-test-1.xml gtest-test-2.xml cpptestcov report dtp -root /home/dev/project -property build.id=build-123 /home/dev/project/build/cov-data-folder /home/dev/project/build/gtest/gtest-results.xml |