Control and display multiple code coverage sessions
The Code Coverage Sessions view lets you control and display multiple code-coverage sessions:
The view displays the following as a hierarchical tree for each session:
| Session item | Description | Possible icons |
|---|---|---|
| Code coverage session | Launch configuration name, coverage tool, and start time (e.g. ccov102_factor [GCC Code Coverage] (7/2/03 2:48 PM)) | |
| Project | Project name and amount of coverage (e.g. ccov102_factor [ 86.67% ]) | |
| File | Filename and amount of coverage (e.g. ccov102_factor.c [ 86.67% ]) | |
| Function | Function name and amount of coverage (e.g. main [ 100% ]) |
The IDE uses several icons in this view:
| Icon | Meaning |
|---|---|
| No coverage | |
| Partial coverage | |
| |
Full (100%) coverage |
| Missing or out-of-date source file |
The IDE also adds a coverage markup icon (
) to indicate source markup in the editor.
(See the "Examining data line-by-line" section, below.)
To reduce the size of
the hierarchical tree, click the Collapse All
(
) button.
To combine several sessions:
The IDE can display the line-by-line coverage information
for your source code. In the left margin, the editor
displays a "covered" icon (
) beside
each line of source. In the right margin, the editor
displays a summary of the coverage by showing green sections for
fully-covered code, yellow for partial coverage, and red for no coverage:

The selected icon appears beside the corresponding source in
the C/C++ editor. In the Code Coverage Sessions view, a
coverage marker (
) overlays the source file
icon.
To automatically show coverage information when opening a file: