You must first have created a configuration .tcf file. One is supplied in
etc\default.tcf
, for you to edit or use as is.
- Open your application in the IDE.
- 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.
- From Project > Properties, click the IDE button.
- Enter the environment variable TESTCOVER in the Variable entry field, and the location of the configuration .tcf file in the Value entry field.
- Click Set, and OK twice.
- Rebuild your application.
- Run or step through your application until you encounter a Stop Run.
- 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.