reportCodeCoverage

reportCodeCoverage();

The reportCodeCoverage method of the JadeProfiler class outputs code coverage statistics for JADE methods executed during testing to the file specified in the codeCoverageFileName property.

In JADE thin client mode, code coverage output is always output to the workstation that is running the JADE logic; that is, to the application server.

Using the startCodeCoverage method starts the recording of the method coverage statistics, which are recorded until the stopCodeCoverage method is executed. The statistics are output to file only when the reportCodeCoverage method is executed.

When you call the reportCodeCoverage method and there is an existing file, records are appended to that file.

Commands provided by the Jade User Interrupt Profiler submenu enable you to capture code coverage statistics for an application that is currently running. For details, see Chapter 1, "Running a JADE User Application", in the JADE Runtime Application Guide.