The ABAP Coverage Analyzer is a tool for collecting and analyzing the code coverage of test suites. You can use it to improve the quality of ABAP Unit tests and integration tests and to help manage quality assurance testing.
The Coverage Analyzer tracks how much of your code is exercised in the course of testing or even in the course of normal production use. The Coverage Analyzer reports on code coverage at the procedure, branch, and statement levels. It also tracks the frequency with which code is executed and the occurrence of runtime errors.
Here are some typical tasks for which you can use the ABAP Coverage Analyzer:
If you are a developer, you can use the Coverage Analyzer to Validate your ABAP Unit tests and integration tests.
You can determine how much of your code is exercised by your tests. You can efficiently find gaps in your testing that you can fill with new or modified tests. You can verify that your integration tests correspond in terms of code coverage to actual user scenarios.
You can see the code coverage your tests achieve in your development system with the coverage display in the ABAP Unit Browser or the Detail Display in the Coverage Analyzer.
If you are a quality manager, you can use the Coverage Analyzer to do the following:
Monitor the code coverage achieved by testing in a QA system. You can use code coverage as a measure of the adequacy of the testing.
Analyze and report on trends in code coverage in a QA system
Aggregate code coverage results from remote systems for reporting
You can start the Coverage Analyzerfor management and for displaying code coverage data in the following ways:
From the SAP Easy Access screen, choose .
In the Unit Test Browser, run a test favorite with the Additional Options setting set to C Coverage Measurement. Or run Program or Package unit tests in the Browser with the Execute and measure coverage function.
You can see the code coverage data of the unit tests directly in the Unit Test Browser.
From any screen, enter the transaction code SCOV.
To start the Coverage Analyzer (transaction SCOV), you must have an authorization for authorization object S_TCODE with TCD field value SCOV.
You don't need any additional authorization to start the Coverage Analyzer and use the Detail Display and Global Display.
For all other functions, you need an authorization for authorization object S_COV_ADM. This authorization is included in the SAP developer role.
Main user tasks:
Technical background information:
Coverage Analyzer Administration
The Global Display of the ABAP Coverage Analyzer
The Details Display of the ABAP Coverage Analyzer
See also Using the Coverage API if you would like to implement your own code coverage instrumentation.