Show TOC

Unit Testing and Coverage AnalyzerLocate this document in the navigation structure

ABAP Unit is a unit-testing framework that is integrated into the ABAP language.

Procedure

  1. For unit testing:
    1. Start unit tests through the Run as menu in the context menu of an editor or the Project Explorer.
      The focus will be set to the Unit Test view, where the results will be displayed in a tree as soon as they are available. Tests that have errors are marked with a specific icon.
  2. For coverage measurement:
    1. Start unit tests with coverage measurement through the Coverage as menu in the context menu of an editor or the Project Explorer.
      The coverage results are displayed in the ABAP Coverage view. The source code is colored with green and red background color and specific coverage annotations are added to the code.
    2. If these annotations are included in the Next annotation navigation, choose Ctrl . to navigate to lines that have been covered only partially or not at all.