![]() |
|
|
|
Step 8 - Code CoverageConfigure Code Coverage
First, activate Code Coverage either from the Overview panel or by selecting the menu
"Settings / Sampling and instrumentation rules":
The "Sampling and instrumentation rules" dialog appears:
Please perform the following steps:
Apply Code CoverageNext, send the instrumentation rules to the remote VM. Click the toolbar item highlighted below or select the menu "remote VM / apply rules":
Resume Process
Next, resume Example01 by clicking "
Create a snapshotTo create a snapshot, select menu item "
90% of the lines containing code have been reached. Since constructor Example01(String) hasn't been invoked, only five out of six methods have been called (i.e. 83%). Open source fileNow click button "open source file". A file viewer pops up, where green areas indicate reached code. Analogously, red areas stand for non-reached lines which do contain executable code.
|