Code coverage report for a selection of files

Last edited on

cmreport can exclude files from a code coverage report. If we wanted to compute for example a report of only the files in the mysrc directory, we would proceed as following:

  1. First we exclude all sources files: The command --exclude-file-abs-wildcard="*" does that.

  2. Then we include all sources files from the directory mysrc: the command --include-file-abs-wildcard="*/ mysrc/*" includes all source files that have an absolute path that contains /mysrc/.

A complete command could be:

cmreport --csmes=project.csmes \
--html=project.html \
--exclude-file-abs-wildcard="*" \