BullseyeCoverage Up Contents Search

Empty Coverage File

SYMPTOMS

BullseyeCoverage reports no measurements. The Coverage Browser and covhtml show empty regions only.

Coverage Brower
Coverage Browser


HTML
covhtml

CAUSE

There are two possible causes:

  1. Coverage build was not enabled when the project was built.

  2. All measurements are excluded.

RESOLUTION

  1. Verify that coverage build is enabled before rebuilding. Run the Coverage Browser and use the menu command Tools Options. In the Build tab under the Integration section, verify your compiler is selected. See also Integrating With Your Build Process.

  2. Rebuild without any exclusions. Remove your coverage file to clear any exclusions. Remove the covselect command from your build process. Remove any covc.cfg files, for example $HOME/covc.cfg. After rebuilding, recreate your exclusions. See Excluding Code

    There are two recommendations for excluding code which both should be followed if possible.

Updated: 26 May 2020