|
To install the coverage tool, simply parcel-in CoverageTool.pcl.
To use the coverage tool, select Coverage Tool from the
Tools menu in the launcher. This will open a window similar to:

The top part of the tool shows the methods that you want to instrument. The
ones with a check mark are the ones that will be instrumented. You can select a
method to be instrumented, by making a selection, and then selecting "add"
or "add all" from the menu.
There are several actions that can be performed by the buttons at the bottom
of the window. The "Save" and "Load" buttons will
save/load the current selection (at the top). The "Install" and "Uninstall"
buttons will (un)install the currently selected coverage (note the Install
button is not shown, since we have already installed coverage). The "Pause"
and "Resume" buttons will pause/resume the coverage if it has
already been installed. This will allow you to make some changes without losing
the percent of methods covered (the Resume button is not shown
since we have not paused it).
The "Coverage" button will open a
Refactoring
Browser on the current selection and its coverage. The browser will look
similar to

Each of the entries will be color-coded base on percentage of coverage for
that selection and the colors entered in CoverageNavigator
class>>initialize (remember to reinitialize the class after changing the
method).
Finally, the "No visual" and "Visual" buttons
toggle the visibility of the percent done bar. Since updating the percent done
bar runs in a separate process, it might not be desirable for it to be updating
when you are running your tests.
|