Hit command (Edit menu)

Use this command to mark selected code as Hit (executed). This may be useful to undo the effect of marking code Missed. Code that you simply want to remove from a test coverage report should be marked Hidden.

You select code to be marked Hit by highlighting it in a Summary Window or Source Window. Any number of lines may be selected, and all will be marked Hit.

In a Summary Window, you may select executables, folders, files, or procedures. If you select an executable, folder, or file to be Hit, you may subsequently select an item within it (such as a file within an executable, or procedure within a file), and mark that item as Excluded, Hidden, or Missed. Whenever you mark an executable, folder, or file as Hit, the state of any items within are lost.

If the Keep Changes command on the Edit menu is checked, then any code marked Hit from the Summary Window will be recorded as such in the project file. When you use the Clear Coverage command on the Test menu, this code will again be marked Hit. Code marked from the Source Window is not recorded in the project file.