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:
-
Access the Import wizard by selecting .
-
In the selection area, expand QNX, choose GCC Coverage Data,
then click Next.
-
In the GCC Coverage Import dialog, enter a name for the new Code Coverage session in the
Session name field.
-
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.
-
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.
- Click Next to advance to the Data file location dialog.
-
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.
- Click Next to advance to the last dialog.
- Optional:
To include coverage data from referenced projects, select them in the
Referenced projects to include coverage data from list.
- 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.
- 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.