To run test coverage from the IDE

You must first have created a configuration .tcf file. One is supplied in etc\default.tcf , for you to edit or use as is.


  1. Open your application in the IDE.
  2. To switch on test coverage for a whole project, go to Project > Properties, check the Test Coverage box, and click OK.

    or:

    To switch on test coverage for individual files, click on an individual program in the Project View window, right-click and select Build Settings, check Test Coverage on the Compile tab, and click Close.

  3. From Project > Properties, click the IDE button.
  4. Enter the environment variable TESTCOVER in the Variable entry field, and the location of the configuration .tcf file in the Value entry field.
  5. Click Set, and OK twice.
  6. Rebuild your application.
  7. Run or step through your application until you encounter a Stop Run.
  8. Exit from debugger.

A binary results file, .tcz, has been produced. You can now run TCReport on this results file.

Note: 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