Enable code coverage

To build executables with code coverage enabled:
  1. In the Project Explorer view, right-click your project and select Properties. The properties dialog for your project appears.
  2. In the left pane, select QNX C/C++ Project.
  3. In the Build Options pane, check Build with Code Coverage.
  4. In the Build Variants tab, check only one build variant.
    If more than one build variant is checked, the IDE displays an error message and disables the OK button.
  5. Click OK.
  6. In the Project Explorer view, right-click your project and select Clean….
  7. Be sure that your project is selected, and check the Start a build immediately box, and then click OK to rebuild your project.