Note: The following applies to native code only.
Before you run an application in code coverage mode, you must enable code coverage in the properties of your project, build configuration or a file. You then need to build your application.
To enable code coverage for your project:
- Open your project's properties, expand
Micro Focus > Project Settings and click the
COBOL tab.
- Check
Enable code coverage.
- Click
Apply and then click
OK.
To enable code coverage for a build configuration of your project:
- Open your project's properties, expand
Micro Focus > Project Settings > Build Configurations and click the
COBOL tab.
- Expand
Override project COBOL settings and check
Enable configuration specific settings.
- Check
Enable code coverage.
- Click
Apply and then click
OK.
To enable code coverage for individual files in your project:
- Open a file's properties and click the
COBOL tab.
- Check
Enable file specific settings and check
Enable code coverage.
- Click
Apply and then click
OK.
Note: If
Build Automatically is not enabled in the IDE, you need to build your project manually.
If your application executes in an enterprise server, you also need to configure the server to run in code coverage mode:
- In the IDE, open Server Explorer.
- Right-click the server that is associated with your application and click
Configure Analysis > Code Coverage.