Walkthrough - Viewing Coverage Data

Related Topics

The second step in monitoring and improving coverage is to survey the coverage data and evaluate the general level of coverage for your program.

You can view the data from different angles in the following windows:

§          The Coverage Browser window, which is displayed after you exit the program you're testing, presents information such as the number of functions and lines hit and missed by your tests. In addition, you can see the percentage of functions and lines hit, and the number of times each function was called.

§          The Function List window displays coverage data for all functions in the current run. You can sort the list to show the most significant gaps in coverage. To display the Function List window, click images\flic.gif

§          The Annotated Source window displays coverage statistics on a copy of your source code. The annotations show how many times each line and function has been hit. To display the Annotated Source window, select a function in the current window for which source code is available and click images\asic.gif. Note that debug line information must also be available, and the module that contains the function must have been monitored at line level.

(C) Copyright IBM Corporation 1993, 2010.