Importing GCC coverage data

The GCC Coverage Data option in the Import wizard lets you import code coverage data generated by programs that are based on IDE projects but were run outside of the IDE or were run with code coverage disabled.

For example, if you run a coverage-enabled binary from the command line, it writes coverage data into a project_name.gcda file in the same directory as the program's code.
To import code coverage data into the IDE:
  1. Access the Import wizard by selecting File > Import.
  2. In the selection area, expand QNX, choose GCC Coverage Data, then click Next.
  3. In the GCC Coverage Import dialog, enter a name for the new Code Coverage session in the Session name field.
  4. Specify the project from which the data was generated.
    You can enter the name in the Project field or click Browse… to select a project from a file selector.
  5. If the project supports multiple platforms, select the platform on which the program was run (and hence, the coverage data was generated) in the Platform dropdown.
  6. Click Next to advance to the Data file location dialog.
  7. Specify the location of the data file to use.
    If the program was launched from the IDE, leave Look up in the project checked to read the data file written to the project area. If the program was run outside of the IDE, uncheck this box and click one of the buttons below to manually select a data file location from the remote target, the workspace, or an accessible filesystem.
  8. Click Next to advance to the last dialog.
  9. Optional: To include coverage data from referenced projects, select them in the Referenced projects to include coverage data from list.
  10. Optional: To add comments describing the new session (such as details about the data you're importing), enter them in the Comments for this coverage session field.
  11. Click Finish.
The IDE imports the coverage data into a new session in the Code Coverage Sessions view. You can double-click this session to view the coverage data.