ABAP Unit is a unit-testing framework that is integrated into the ABAP
language.
Procedure
- For unit testing:
- 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.
- For coverage measurement:
- 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.
- 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.