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:
First we exclude all sources files: The command
--exclude-file-abs-wildcard="*"
does that.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="*" \
--include-file-abs-wildcard="*/mysrc/*"