Having enabled code coverage for a project (see Enabling Code Coverage), you need to execute the application in code coverage mode in order to generate the coverage data. There is a different approach to this depending on whether or now the application requires an enterprise server to run.
If your application does not require an enterprise server, to run it in code coverage mode:
After the execution stops, the IDE automatically opens the Code Coverage view that shows the statistics about what percentage of the code has executed. The code in the editor is colorized to indicate covered and missed blocks.
Running the application with code coverage also produces a binary results file, filename.tcz in the Results directory specified on the launch configuration.
If Generate reports upon run completion is checked in the IDE preferences for code coverage, Enterprise Developer also produces an HTML report. If no preferences are specified for the HTML report, you also receive a Code Coverage Report Generation Options dialog box prompting you to specify how this report should be configured.
If your application requires an enterprise server, to run it in code coverage mode:
See Enabling Code Coverage.
You might be promoted to specify directories for the generated coverage files. Click OK to confirm your preferences.
You must stop the server for the IDE to produce the code coverage information. After the execution stops, the IDE automatically opens the Code Coverage view that shows the statistics about what percentage of the code has executed. The code in the editor is colorized to indicate covered and missed blocks.
Running the application with code coverage also produces a binary results file, filename.tcz in the Results directory specified on the launch configuration.
If Generate reports upon run completion is checked in the IDE preferences for code coverage, Enterprise Developer also produces an HTML report. You might receive a Code Coverage Report Generation Options dialog box for you to specify how this HTML report should be configured.
See Viewing the Code Coverage information.