Importing GCC coverage data from a project

The GCC Coverage Data from Project option in the Import wizard lets you import code coverage data from applications that have been run outside of the IDE.

For example, in a self-hosted build environment, if you run a code-coverage-enabled program from the command-line, it writes code-coverage data into a project_name.gcda file in the same directory as the program's code.

To import code-coverage data:

  1. In the Import wizard (File > Import), expand , choose GCC Coverage Data, and then click Next.

    The IDE shows the GCC Coverage Import panel.

  2. Enter a code-coverage session name in the Session name field.
  3. Enter a project name in the Project field, or click the Browse… button to select a project.
  4. Click Next to continue.
  5. Select a protocol type and a location for the coverage data.
  6. Click Next.

    The IDE shows the next panel.

  7. To include code-coverage data from referenced projects, select them in the Referenced projects to include coverage data from list.
  8. To include any comments with the new code-coverage session (such as details about the data you're importing), enter them in the Comments for this coverage session field.
  9. Click Finish to import the code coverage data as a new session in the Code Coverage Sessions view.
  10. Click Next.