Exporting Code Coverage results
Sometimes, it's useful to view coverage data outside of the IDE. The Code Coverage export feature lets you generate a report that contains the data of a coverage session and that can be viewed in a browser.
In this release, there is no longer an action for saving session data to an XML file. Instead, you can export the results from a session into HTML files.
-
In the Analysis Sessions view, right-click the session for which you want to save the results.
The session can still be in progress—in this case, the IDE just outputs the results gathered so far.
- Select Export Session from the context menu.
-
In the Save Coverage Report window, specify the path for saving the report as well as
the name of the root file.
For convenience, the IDE fills in a default path for saving the report. This path is a subdirectory within the project directory and is named project_name___GCC_Code_Coverage_. The root file (by default, index.html) contains the report summary.
You can set other report generation properties, as explained in
How to set report properties
.
How to read reports.