C/C++test CT can publish code coverage and GoogleTest results to Parasoft DTP with the cpptestcov report dtp command.  

  • For reporting code coverage results, specify the coverage data folder (containing the .cov data files). 
  • For reporting GoogleTest results, specify a GoogleTest report .xml file. Multiple report files can be published at once. For reporting test traceability associations, see Configuring Test Traceability Associations.  

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. Hint: 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
  • No labels