cmake-scripts
cmake-scripts copied to clipboard
Question: code coverage on all targets
Is it possible to have code coverage reported on all targets? For example, if I run an executable with coverage I've noticed that only the compilation units in that executable get included in the coverage report. Instead, I'd like all file in my project to have 0% coverage by default, and then running the executable updates that baseline.
Is this possible and I am doing something wrong, or is this not supported?
Basically this step https://wiki.documentfoundation.org/Development/Lcov#Run_initial.2Fbaseline_lcov
create an lcov "baseline" before running any tests. The result is a coverage data file that contains zero coverage for every instrumented line of the project