Having enabled code coverage for a project, you need to execute the application with code coverage in order to generate the code coverage data.
There is a difference between how you run applications with code coverage depending on whether they require an enterprise server to run or not.
If your application does not require an enterprise server, to run it in code coverage mode:
If your application requires an enterprise server, to run it in code coverage mode:
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 report files.
If there are no code coverage report options checked in the IDE preferences, running with code coverage only produces a binary results file, filename.tcz, in the directory specified on the launch configuration. In this case, to produce the code coverage report files in .html format, right-click the filename.tcz file in your project and click Generate Coverage Report.
If Generate reports upon run completion is checked in the IDE preferences for code coverage, when the application finishes running, the IDE displays Code Coverage Report Generation Options dialog box for you to specify options for producing the report.