To use test coverage from the command line

Note: This facility is supported in native COBOL only.
  1. Create a test coverage configuration file.
  2. Set the TESTCOVER environment variable.

    The value of the variable should be the path of the test coverage configuration file.

  3. Build your application with the TESTCOVER compiler directive set.
  4. Run your application.

    Depending on how you set the options in your configuration file, one or more results (.tcz) files are created.

  5. If you want test coverage to report on tagged lines, create a tag file.
  6. Use cobtcreport to produce reports from the results files. If you want to include information on tags, set the taglines option.