When you flush coverage data, you transfer the data that is being
collected to a profiling resource so that it can be displayed in the coverage
views. Flushing is performed automatically, but under certain circumstances
an additional flush configuration is required. If the Annotated
Source and Coverage Monitor views report No
data available for display after you have collected coverage
data for lines and methods, configure a flush of the coverage data to transfer
it to the profiling resource during subsequent runs.
To configure flushes of coverage data:
- In the Profiling tab, Overview subtab, select the Code
Coverage - Method and Line Level profiling set.
- Click Edit, then Next.
- Select the Flush coverage data when any
of the following methods run check box.
- Click Add.
- In the Method Event and Pattern Editor dialog box, choose whether
the event that triggers the flush should be an entry or an exit.
- Enter names or patterns to define at least one method in your application
that you know is called when you collect coverage data.
- Click Create , and then, in the Edit Profiling
Set dialog box, click Finish.