- Qt Creator Documentation
- View code coverage reports from Coco
- Qt Creator 17.0.0-beta1

How To

# View code coverage reports from Coco

Note: Enable the Coco plugin to use it.

With Coco CoverageBrowser, you can analyze the test coverage by loading an instrumentation database (a `.csmes` file), which was generated by Coco CoverageScanner.

To measure and check code coverage:

1. Go to Analyze > Squish Coco.

2. In CSMes, select the instrumentation database to load.
3. Select Open to start CoverageBrowser.
4. In CoverageBrowser, go to File > Load Execution Report and select the `.csexe` file for the coverage scan.

5. To keep the execution report, clear Delete execution report after loading.

Open the analyzed files in Qt Creator. You can see the results of the analysis after the code in Edit mode. You can change the fonts and colors used for different types of results.

## Change fonts and colors

To change the default fonts and colors, go to Preferences > Text Editor > Font & Colors. Create your own color scheme and select new fonts and colors for the following results:

- Code Coverage Added Code
- Partially Covered Code
- Uncovered Code
- Fully Covered Code
- Manually Validated Code
- Code Coverage Dead Code
- Code Coverage Execution Count too Low
- Implicitly Not Covered Code
- Implicitly Covered Code
- Implicit Manual Coverage Validation

See also Enable and disable plugins, Font & Colors, Analyzing Code, and Coco.

How To