To run a program in test coverage mode


  1. Open your application in the IDE.
  2. Click Tools > Test Coverage > Configuration.

    The Test Coverage configuration dialog is displayed.

  3. If a test coverage configuration file hasn't yet been created, or you want to create a configuration file specific to this test run, create the configuration file.
  4. Specify the configuration file you want to use:
    1. Highlight the file in the file list.
    2. Click Set as active.
  5. Check the Run in test coverage mode box.
  6. Click OK.
Note:
  • Manually changing the execution point while debugging a program (using Skip to Cursor, for example) produces test coverage results that are unpredictable.
  • Before you can run a program in test coverage mode, it first has to be compiled with the TESTCOVER directive set.
  • You can run test coverage from a command prompt by compiling your program with the TESTCOVER directive, setting the environment variable TESTCOVER, and running your program in the usual way.
Related reference
TESTCOVER
Related information
Environment Variables Summary