Show TOC

Reviewing Code Coverage in the Global DisplayLocate this document in the navigation structure

Procedure

To make efficient use of the code coverage data in the Global Display, do the following:

  • To see the aggregated code coverage reached by particular developers or managers, choose Start of the navigation path Other View Next navigation step Author End of the navigation path in the Global Display.

    For a particular developer, the Display aggregates the code coverage of the packages owned by the developer. For a manager, the Display aggregates the code coverages of the developers in the manager's department or departments.

    In the illustrations below, the user DEV_MANAGER has only one developer in his or her department. The aggregated code coverages for user DEVELOPER_PACKAGE_OWNER and DEV_MANAGER are therefore identical.

  • To see the aggregated code coverage for the packages in which you are developing and testing, choose Start of the navigation path Other View Next navigation step Package End of the navigation path in the Global Display.

    As the illustration below shows, you can open the navigation hierarchy down to the developer who owns each package. There you can see the aggregated code coverage of each package.

Figure 1: Navigating in the Global Display: View for Package

Details of the Illustration: The Global Display has the following features:

  • It aggregates Coverage Analyzer data to the level of the development package.

    By default, the history data shown in the Global Display includes all non-temporary development packages in the system. (A temporary development package is one whose name begins with the ' ?' character and which cannot be transported.)

    SAP recommends that you limit the history to the development packages in which you are developing and testing.

  • The Global Display is organized by the owners of development packages.

    The Global Display starts with test groups. To see the code coverage data, you need to open the hierarchy down to the level of the development package owner. Each package in the system is shown only under the person or organization that is responsible for the package.

    If you have opened the Author view, then the code coverages of the packages are aggregated in the coverage statistics of the package owner (author). You won't see the packages themselves in this view.

    The Coverage Analyzer reads the business hierarchy above the package owner from the personnel data stored in the CRMAHR table. Typically, this data is maintained in one or a few SAP HR systems and exported to other systems.

    If the Global Display does not find personnel information, then it inserts ' ??' characters in the hierarchy as placeholders. You can ignore such placeholders; simply open the hierarchy down to the developers or development packages in which you are interested.

Using the Global Display

Use the Package View of the Global Display to find packages that have poor code coverage. In the case of the illustration below, you would want to ask user DEVELOPER_PACKAGE_OWNER why some of his or her packages have excellent code coverage, while others seem to have no tests at all.

Mark a line that shows poor coverage and choose the Detailed View of Results function to see the package in the Detail Display. There you can analyze the code coverage in depth and identify opportunities for improving the code coverage.

Figure 2: Using the Global Display

The graph to the right of the results table shows the trend in code coverage for the line you select. You can easily see whether code coverage has been improving in your packages. The data points in the graph represent separate runs of the history job.

By default, the Global Display always starts with the current history version in the Coverage Analyzer. You can also switch to different history versions to see code coverage statistics and trends during other test cycles or periods of time.