Code coverage

The Code Coverage view displays the number of times each line of code has been executed, if it has never been executed, or if it is not reachable at all.

Activating code coverage

  1. In your current configuration, select the Code Coverage environment set.
  2. Open a source code (.4gl) file.
  3. Select Diff > Code Coverage View.
  4. Run the application.
  5. Exit the application.

The statistics are displayed in the Code Coverage View.

Figure: Code Coverage view


Screen shot of the Code coverage view

To find out more about how source code coverage works under the covers, see Source code coverage in the Genero Business Development Language User Guide.

Clearing code coverage values

The code coverage (.cov) files are created in the same location as your .42m files. To reset the code coverage values, remove these files from the directory.