In this section:

C/C++test Coverage Overview - Percent


        C/C++ Professional                     C/C++ NextGen

This widget shows the percentage of test coverage for a run configuration within the filter and target build. Filters may contain several run configurations, which are designated by a session tag and the test configuration name. See Run Configuration for additional information.

This widget only shows coverage information for C/C++test Professional and C/C++test NextGen. C/C++test Standard, dotTEST, and Jtest report line coverage only, whereas C/C++test Professional is capable of reporting several coverage types in addition to line coverage and C/C++test NextGen can report that plus coverage suppressions. If you are using C/C++ NextGen, the widget you see in DTP will show suppressions in parentheses in the numerator, as shown in the example images above.

When configuring the widget, you can choose the following coverage types:

  • Block Coverage
  • Call Coverage
  • Decision Coverage
  • Function Coverage
  • Line Coverage
  • Modified Condition/Decision Coverage (MC/DC)
  • Path Coverage
  • Simple Condition Coverage
  • Statement Coverage

Refer to the C/C++test Professional and C/C++test NextGen documentation for additional information about coverage types and how to collect coverage.

This widget requires a DTP Enterprise license.

Contact your Parasoft representative for additional information.

Widget Configuration

TitleEnter a new title to replace the default title that appears on the dashboard.
FilterChoose Dashboard Settings to use the dashboard filter or choose a filter from the menu.
Coverage TypeChoose a coverage type from the menu to show coverage data in the widget. Refer to the C/C++test Professional documentation for additional information about coverage types.
Run ConfigurationChoose a run configuration from the selected filter for which the coverage data will be presented. Run configurations are designated by session tag and test configuration name. See Run Configuration for additional information.
Target BuildChoose a build containing coverage data from the menu.

Actions

Click on the widget to open the C/C++test coverage report. Refer to the C/C++test Professional and C/C++test NextGen documentation for additional information about reports.

Custom Dashboard Properties

You can add this widget to your custom dashboards by specifying the following properties in the dashboard definition JSON file (see Custom Dashboard Templates for details): 

"name": "coverage_overview"
"type": "native",
"id": "7e6bda96-1776-4b8f-b966-50971c1b7160"

C/C++test Coverage Overview - Trend

This widget shows the change in test coverage over time for a run configuration within the filter and target build. Gaps in the trend line represent builds that do not have coverage information for the specified coverage type. Filters may contain several run configurations, which are designated by a session tag and the test configuration name. See Run Configuration for additional information.

This widget only shows coverage information for C/C++test Professional and C/C++test NextGen. C/C++test Standard, dotTEST, and Jtest report line coverage only, whereas C/C++test Professional is capable of reporting several coverage types, in addition to line coverage and C/C++test NextGen can report that plus coverage suppressions. 

When configuring the widget, you can choose the following coverage types:

  • Block Coverage
  • Call Coverage
  • Decision Coverage
  • Function Coverage
  • Line Coverage
  • Modified Condition/Decision Coverage (MC/DC)
  • Path Coverage
  • Simple Condition Coverage
  • Statement Coverage

Refer to the C/C++test Professional and C/C++test NextGen documentation for additional information about coverage types and how to collect coverage.

This widget requires a DTP Enterprise license.

Contact your Parasoft representative for additional information.

Widget Configuration

TitleEnter a new title to replace the default title that appears on the dashboard.
Coverage TypeChoose a coverage type from the menu. to show coverage data in the widget. Refer to the C/C++test Professional documentation for additional information about coverage types.
FilterChoose Dashboard Settings to use the dashboard filter or choose a filter from the menu.
PeriodChoose Dashboard Settings to use the dashboard date range or choose a period from the menu.
Run ConfigurationChoose a run configuration from the selected filter for which the coverage data will be presented. Run configurations are designated by session tag and test configuration name. See Run Configuration for additional information.

Actions

They x-axis represents the builds in the specified period. You can hover your pointer over an area of the widget aligned to a build to view the build ID name and precise coverage for the build.

 

Click on the widget to open a dialog containing more detailed coverage information about the builds represented in the widget.

Click on a link in the Build column of the Coverage Trend dialog to open the C/C++test coverage report. If you are using C/C++test NextGen, the "Covered" column as shown in the example above will be "Covererd (+Suppressed)." Refer to the C/C++test Professional and C/C++test NextGen documentation for additional information about reports.

Custom Dashboard Properties

You can add this widget to your custom dashboards by specifying the following properties in the dashboard definition JSON file (see Custom Dashboard Templates for details): 

"name": "coverage_overview"
"type": "native",
"id": "93248a16-f3e0-4719-8cec-0706a13a1d20"
  • No labels