Enabling 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.
    Note: 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.
Related concepts
Types of code coverage in the IDE
How the coverage tool works
Associated views
Code Coverage Sessions view
Code Coverage Properties view
Code Coverage Report view
Related tasks
Importing gcc code coverage data from a project